Skip to content

Commit 1b8bae3

Browse files
committed
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
2 parents 5d480b9 + 9e95b9b commit 1b8bae3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/wpa_supplicant/esp_supplicant/src/esp_wpa_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ static void wpa_sta_disconnected_cb(uint8_t reason_code)
294294
case WIFI_REASON_ASSOC_FAIL:
295295
case WIFI_REASON_CONNECTION_FAIL:
296296
case WIFI_REASON_HANDSHAKE_TIMEOUT:
297-
esp_wpa3_free_sae_data();
298297
wpa_sta_clear_curr_pmksa();
299298
wpa_sm_notify_disassoc(&gWpaSm);
300299
break;
@@ -308,6 +307,7 @@ static void wpa_sta_disconnected_cb(uint8_t reason_code)
308307
owe_deinit();
309308
#endif /* CONFIG_OWE_STA */
310309

310+
esp_wpa3_free_sae_data();
311311
supplicant_sta_disconn_handler(reason_code);
312312
}
313313

0 commit comments

Comments
 (0)