diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index 0350b8e0a..a90e9d365 100644 --- a/wpa_supplicant/config.c +++ b/wpa_supplicant/config.c @@ -1110,6 +1110,7 @@ static int wpa_config_parse_eap(const struct parse_data *data, wpa_hexdump(MSG_MSGDUMP, "eap methods", (u8 *) methods, num_methods * sizeof(*methods)); + os_free(ssid->eap.eap_methods); ssid->eap.eap_methods = methods; return errors ? -1 : 0; }