aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-12-21 20:22:49 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-09 19:02:34 (GMT)
commitb515e1cd4083f393af4574df0d45bed3bcb4b76a (patch)
tree758eb8cf58d7f49814846d49471a18c041989a16
parent8d89f41d8f2ac883805c90124e6f6a9bbf1b299b (diff)
downloadhostap-06-b515e1cd4083f393af4574df0d45bed3bcb4b76a.zip
hostap-06-b515e1cd4083f393af4574df0d45bed3bcb4b76a.tar.gz
hostap-06-b515e1cd4083f393af4574df0d45bed3bcb4b76a.tar.bz2
Fix memory leak in config freeing
Both supported_rates and basic_rates arrays must be freed when freeing hostapd configuration. (cherry picked from commit 79d6c85ffd135eed5fbd62481fa3b8347093555f)
-rw-r--r--hostapd/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/config.c b/hostapd/config.c
index 35bf17a..29fc68e 100644
--- a/hostapd/config.c
+++ b/hostapd/config.c
@@ -2479,6 +2479,8 @@ void hostapd_config_free(struct hostapd_config *conf)
for (i = 0; i < conf->num_bss; i++)
hostapd_config_free_bss(&conf->bss[i]);
os_free(conf->bss);
+ os_free(conf->supported_rates);
+ os_free(conf->basic_rates);
os_free(conf);
}