Browse Source

Fix memory leak on RSN preauth init error path

Jouni Malinen 15 years ago
parent
commit
1ce77dcc66
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/ap/preauth_auth.c

+ 1 - 0
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;
 		}