WNM: Fix memory leak on error path
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
4da10640a7
commit
14df897c7a
1 changed files with 2 additions and 0 deletions
|
@ -99,6 +99,8 @@ int ieee802_11_send_wnmsleep_req(struct wpa_supplicant *wpa_s,
|
||||||
if (mgmt == NULL) {
|
if (mgmt == NULL) {
|
||||||
wpa_printf(MSG_DEBUG, "MLME: Failed to allocate buffer for "
|
wpa_printf(MSG_DEBUG, "MLME: Failed to allocate buffer for "
|
||||||
"WNM-Sleep Request action frame");
|
"WNM-Sleep Request action frame");
|
||||||
|
os_free(wnmsleep_ie);
|
||||||
|
os_free(wnmtfs_ie);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue