aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-06 19:14:09 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-09 19:07:43 (GMT)
commit73dcc64b40e69544a346aab1acd2dbcf0d465b06 (patch)
tree9b5787f00773d41adb8e5c754cc99f02dbed067d
parentf074df83c2c1e3b2ecb0cd0b0567109d13e00e95 (diff)
downloadhostap-06-73dcc64b40e69544a346aab1acd2dbcf0d465b06.zip
hostap-06-73dcc64b40e69544a346aab1acd2dbcf0d465b06.tar.gz
hostap-06-73dcc64b40e69544a346aab1acd2dbcf0d465b06.tar.bz2
Fix memory leak on RSN preauth init error path
(cherry picked from commit 1ce77dcc66bdd8c44f85d1bea95526e4407953e9)
-rw-r--r--hostapd/preauth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hostapd/preauth.c b/hostapd/preauth.c
index 36af4e3..9ab41ed 100644
--- a/hostapd/preauth.c
+++ b/hostapd/preauth.c
@@ -171,6 +171,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;
}