aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-08-17 18:04:07 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-05 14:29:20 (GMT)
commitf6fa3cd4250a5f89bbe9f0fc861be9278db7a78e (patch)
tree19e52e7bf24da8857cabccee285e669b333c1397
parent10928cd1085a38b055f63a12924e729789f2da35 (diff)
downloadhostap-07-f6fa3cd4250a5f89bbe9f0fc861be9278db7a78e.zip
hostap-07-f6fa3cd4250a5f89bbe9f0fc861be9278db7a78e.tar.gz
hostap-07-f6fa3cd4250a5f89bbe9f0fc861be9278db7a78e.tar.bz2
Fix memory leak in AP WEP key configuration
(cherry picked from commit 43dd46b3bcb9442d4ffc3ed2d241f8e4bb617f9e)
-rw-r--r--src/ap/ap_config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c
index fbedb62..5996993 100644
--- a/src/ap/ap_config.c
+++ b/src/ap/ap_config.c
@@ -354,6 +354,7 @@ static void hostapd_config_free_bss(struct hostapd_bss_config *conf)
os_free(conf->ssid.wpa_passphrase);
os_free(conf->ssid.wpa_psk_file);
+ hostapd_config_free_wep(&conf->ssid.wep);
#ifdef CONFIG_FULL_DYNAMIC_VLAN
os_free(conf->ssid.vlan_tagged_interface);
#endif /* CONFIG_FULL_DYNAMIC_VLAN */