Fix memory leak in config freeing

Both supported_rates and basic_rates arrays must be freed when freeing
hostapd configuration.
This commit is contained in:
Jouni Malinen 2009-12-21 22:22:49 +02:00 committed by Jouni Malinen
parent e62fb0a0de
commit 79d6c85ffd

View file

@ -2485,6 +2485,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);
}