aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wnm_sta.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-12-16 17:31:25 (GMT)
committerJouni Malinen <j@w1.fi>2012-12-16 17:31:25 (GMT)
commit14df897c7a29fd9a5777def0afdedabb31f5df62 (patch)
tree99e5197434be1ed8c39a6bfba8d4d962ef59365f /wpa_supplicant/wnm_sta.c
parent4da10640a74b73f7e77fa5a0036417f2e8fce8b9 (diff)
downloadhostap-14df897c7a29fd9a5777def0afdedabb31f5df62.zip
hostap-14df897c7a29fd9a5777def0afdedabb31f5df62.tar.gz
hostap-14df897c7a29fd9a5777def0afdedabb31f5df62.tar.bz2
WNM: Fix memory leak on error path
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/wnm_sta.c')
-rw-r--r--wpa_supplicant/wnm_sta.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c
index 35cd032..315722b 100644
--- a/wpa_supplicant/wnm_sta.c
+++ b/wpa_supplicant/wnm_sta.c
@@ -99,6 +99,8 @@ int ieee802_11_send_wnmsleep_req(struct wpa_supplicant *wpa_s,
if (mgmt == NULL) {
wpa_printf(MSG_DEBUG, "MLME: Failed to allocate buffer for "
"WNM-Sleep Request action frame");
+ os_free(wnmsleep_ie);
+ os_free(wnmtfs_ie);
return -1;
}