aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-08-13 18:29:53 (GMT)
committerJouni Malinen <j@w1.fi>2016-08-13 18:29:53 (GMT)
commitb97a54108732b8b5048f86388bed305df21ea8e5 (patch)
tree9c360293b5a8fdfbad1df13bae4606e66b7b0c5b /wpa_supplicant
parent5f040be4ff78f26b84840fa31037831bdd886f5b (diff)
downloadhostap-b97a54108732b8b5048f86388bed305df21ea8e5.zip
hostap-b97a54108732b8b5048f86388bed305df21ea8e5.tar.gz
hostap-b97a54108732b8b5048f86388bed305df21ea8e5.tar.bz2
IBSS: Fix a memory leak on RSN error path
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/ibss_rsn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/ibss_rsn.c b/wpa_supplicant/ibss_rsn.c
index ff9aaba..53d7d57 100644
--- a/wpa_supplicant/ibss_rsn.c
+++ b/wpa_supplicant/ibss_rsn.c
@@ -221,6 +221,7 @@ static int ibss_rsn_supp_init(struct ibss_rsn_peer *peer, const u8 *own_addr,
peer->supp = wpa_sm_init(ctx);
if (peer->supp == NULL) {
wpa_printf(MSG_DEBUG, "SUPP: wpa_sm_init() failed");
+ os_free(ctx);
return -1;
}