]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix memory leak in AP WEP key configuration
authorJouni Malinen <j@w1.fi>
Tue, 17 Aug 2010 18:04:07 +0000 (21:04 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 17 Aug 2010 18:04:07 +0000 (21:04 +0300)
src/ap/ap_config.c

index fbedb6294b4b78ec9f02a2fc6de58e633a8bd6e5..59969933e2f9e6165d0e3f58515f7d006068de4e 100644 (file)
@@ -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 */