fix(wpa_supplicant): fix memory leak on SAE commit queue post failure

In auth_sae_queue(), when wpa3_hostap_post_evt() fails, the queued
entry was left on the list and never freed. This leaks memory under
SAE commit floods or when the event queue is full.

Free the entry and remove it from the list on post failure.
This commit is contained in:
Sarvesh Bodakhe
2026-03-04 22:46:04 +05:30
parent 7f7f40404b
commit 7e81c99613
@@ -730,6 +730,8 @@ queued:
/* posting event to the task to handle commit */
if (wpa3_hostap_post_evt(SIG_WPA3_RX_COMMIT, 0) != 0) {
wpa_printf(MSG_ERROR, "failed to queue commit build event");
dl_list_del(&q->list);
os_free(q);
return -1;
}
return 0;