]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix memory leak in ACS offload operation
authorAnkita Bajaj <bankita@codeaurora.org>
Tue, 19 Nov 2019 13:11:34 +0000 (18:41 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 5 Dec 2019 16:02:46 +0000 (18:02 +0200)
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>
src/ap/ap_drv_ops.c

index dcc4fdc459fa229ffe8abc2dc838cfa195c185b4..7e6bf44519a33c3f81ee76aba7a9e4aea9d1e90f 100644 (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;
 }