projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4da1064
)
WNM: Fix memory leak on error path
author
Jouni Malinen
<j@w1.fi>
Sun, 16 Dec 2012 17:31:25 +0000
(19:31 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sun, 16 Dec 2012 17:31:25 +0000
(19:31 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>
wpa_supplicant/wnm_sta.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/wnm_sta.c
b/wpa_supplicant/wnm_sta.c
index
35cd032
..
315722b
100644
(file)
--- 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;
}