Fix memory leak in ACS offload operation
freq_list is built in allocated heap memory and it needs to be freed before returning from this function. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
e86ba912aa
commit
23acdd9f33
1 changed files with 1 additions and 0 deletions
|
@ -950,6 +950,7 @@ int hostapd_drv_do_acs(struct hostapd_data *hapd)
|
|||
}
|
||||
|
||||
ret = hapd->driver->do_acs(hapd->drv_priv, ¶ms);
|
||||
os_free(freq_list);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue