From: Jouni Malinen Date: Wed, 6 Jan 2010 19:14:09 +0000 (+0200) Subject: Fix memory leak on RSN preauth init error path X-Git-Tag: hostap_0_7_1~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ce77dcc66bdd8c44f85d1bea95526e4407953e9;p=thirdparty%2Fhostap.git Fix memory leak on RSN preauth init error path --- diff --git a/src/ap/preauth_auth.c b/src/ap/preauth_auth.c index ade0a9e7f..8e133158a 100644 --- a/src/ap/preauth_auth.c +++ b/src/ap/preauth_auth.c @@ -174,6 +174,7 @@ int rsn_preauth_iface_init(struct hostapd_data *hapd) if (rsn_preauth_iface_add(hapd, start)) { rsn_preauth_iface_deinit(hapd); + os_free(tmp); return -1; }