From e858515daffec351a5468c5ef989048da7e85b6b Mon Sep 17 00:00:00 2001 From: Shashikala Prabhu Date: Wed, 8 Nov 2017 13:03:53 +0530 Subject: [PATCH] qcacmn: Fix memleak issue in DFS component Problem: During wifi up/down, dfs_init_precac_list() is called to initialize the precac list without de-allocating the previously allocated memory. This leads to a memory leak. Solution: Deinit the allocated memory before initializing the precac list. Change-Id: I7eee38fbc3c50f37ac0c6670b5bfe4b5a1b2d9f6 CRs-Fixed: 2140042 --- umac/dfs/dispatcher/src/wlan_dfs_utils_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/dfs/dispatcher/src/wlan_dfs_utils_api.c b/umac/dfs/dispatcher/src/wlan_dfs_utils_api.c index 1eb046d09c37..6d3cccfdd5c2 100644 --- a/umac/dfs/dispatcher/src/wlan_dfs_utils_api.c +++ b/umac/dfs/dispatcher/src/wlan_dfs_utils_api.c @@ -48,7 +48,7 @@ QDF_STATUS utils_dfs_reset(struct wlan_objmgr_pdev *pdev) dfs_reset(dfs); dfs_nol_update(dfs); - dfs_init_precac_list(dfs); + dfs_reset_precaclists(dfs); return QDF_STATUS_SUCCESS; }