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 ade0a9e..8e13315 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;
                }