]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix memory leak on RSN preauth init error path
authorJouni Malinen <j@w1.fi>
Wed, 6 Jan 2010 19:14:09 +0000 (21:14 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 6 Jan 2010 19:14:09 +0000 (21:14 +0200)
src/ap/preauth_auth.c

index ade0a9e7f0dbad3bdcb20623a4e4a5d3b5a36f26..8e133158a9763b65de0048b61c72bed3a6b3b186 100644 (file)
@@ -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;
                }