From b97a54108732b8b5048f86388bed305df21ea8e5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 13 Aug 2016 21:29:53 +0300 Subject: [PATCH] IBSS: Fix a memory leak on RSN error path Signed-off-by: Jouni Malinen --- wpa_supplicant/ibss_rsn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/ibss_rsn.c b/wpa_supplicant/ibss_rsn.c index ff9aabac4..53d7d57bd 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; }