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:
Ankita Bajaj 2019-11-19 18:41:34 +05:30 committed by Jouni Malinen
parent e86ba912aa
commit 23acdd9f33

View file

@ -950,6 +950,7 @@ int hostapd_drv_do_acs(struct hostapd_data *hapd)
}
ret = hapd->driver->do_acs(hapd->drv_priv, &params);
os_free(freq_list);
return ret;
}