From 23acdd9f33ac9ab5546c878674445d8a5d2e62f0 Mon Sep 17 00:00:00 2001 From: Ankita Bajaj Date: Tue, 19 Nov 2019 18:41:34 +0530 Subject: [PATCH] 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 --- src/ap/ap_drv_ops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c index dcc4fdc45..7e6bf4451 100644 --- a/src/ap/ap_drv_ops.c +++ b/src/ap/ap_drv_ops.c @@ -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; }