mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
fix(esp_wifi): Fix memory leak in wpa3 station mode
This commit is contained in:
@@ -224,13 +224,13 @@ static void wpa_sta_disconnected_cb(uint8_t reason_code)
|
||||
case WIFI_REASON_ASSOC_FAIL:
|
||||
case WIFI_REASON_CONNECTION_FAIL:
|
||||
case WIFI_REASON_HANDSHAKE_TIMEOUT:
|
||||
esp_wpa3_free_sae_data();
|
||||
wpa_sta_clear_curr_pmksa();
|
||||
wpa_sm_notify_disassoc(&gWpaSm);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
esp_wpa3_free_sae_data();
|
||||
supplicant_sta_disconn_handler();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user