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:
parent
e62fb0a0de
commit
79d6c85ffd
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue