aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnkita Bajaj <bankita@codeaurora.org>2019-11-19 13:11:34 (GMT)
committerJouni Malinen <j@w1.fi>2019-12-05 16:02:46 (GMT)
commit23acdd9f33ac9ab5546c878674445d8a5d2e62f0 (patch)
treec5bf0c96613a7fbe5968270754b87ca7fbba5ffe
parente86ba912aa885663bcec407bcfed22ff75c2476b (diff)
downloadhostap-23acdd9f33ac9ab5546c878674445d8a5d2e62f0.zip
hostap-23acdd9f33ac9ab5546c878674445d8a5d2e62f0.tar.gz
hostap-23acdd9f33ac9ab5546c878674445d8a5d2e62f0.tar.bz2
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>
-rw-r--r--src/ap/ap_drv_ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index dcc4fdc..7e6bf44 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, &params);
+ os_free(freq_list);
return ret;
}