mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
Merge branch 'bugfix/wpa3_sta_mem_leak_v5.3' into 'release/v5.3'
Fix memory leak in wpa3 station mode (Backport v5.3) See merge request espressif/esp-idf!31636
This commit is contained in:
Submodule components/esp_wifi/lib updated: fda241ceff...eacd07f165
@ -294,7 +294,6 @@ static void wpa_sta_disconnected_cb(uint8_t reason_code)
|
|||||||
case WIFI_REASON_ASSOC_FAIL:
|
case WIFI_REASON_ASSOC_FAIL:
|
||||||
case WIFI_REASON_CONNECTION_FAIL:
|
case WIFI_REASON_CONNECTION_FAIL:
|
||||||
case WIFI_REASON_HANDSHAKE_TIMEOUT:
|
case WIFI_REASON_HANDSHAKE_TIMEOUT:
|
||||||
esp_wpa3_free_sae_data();
|
|
||||||
wpa_sta_clear_curr_pmksa();
|
wpa_sta_clear_curr_pmksa();
|
||||||
wpa_sm_notify_disassoc(&gWpaSm);
|
wpa_sm_notify_disassoc(&gWpaSm);
|
||||||
break;
|
break;
|
||||||
@ -308,6 +307,7 @@ static void wpa_sta_disconnected_cb(uint8_t reason_code)
|
|||||||
owe_deinit();
|
owe_deinit();
|
||||||
#endif /* CONFIG_OWE_STA */
|
#endif /* CONFIG_OWE_STA */
|
||||||
|
|
||||||
|
esp_wpa3_free_sae_data();
|
||||||
supplicant_sta_disconn_handler(reason_code);
|
supplicant_sta_disconn_handler(reason_code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user