From f65cffe88ccc19343f8819104225d2d269160b47 Mon Sep 17 00:00:00 2001 From: Pragaspathi Thilagaraj Date: Fri, 15 Jun 2018 14:20:26 +0530 Subject: [PATCH] qcacld-3.0: Fix mem leak during reset passpoint list wma command The function sme_reset_passpoint_list, posts the wma message WMA_RESET_PASSPOINT_LIST_REQ. This message is freed at the sme_reset_passpoint_list in case of failure. But for the success case, the req_msg is not freed at wma_mc_process_msg. This results in mem_leak in case of success case. Free the req_msg at wma_mc_process_msg after returning from the call wma_reset_passpoint_network_list. Change-Id: Ib4b427a8acc2d531ac9d6e8f92a30205163ec0ba CRs-Fixed: 2259237 --- core/wma/src/wma_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 0ebb7cb1e3d1..28406887a362 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -8220,6 +8220,7 @@ static QDF_STATUS wma_mc_process_msg(struct scheduler_msg *msg) case WMA_RESET_PASSPOINT_LIST_REQ: wma_reset_passpoint_network_list(wma_handle, (struct wifi_passpoint_req *)msg->bodyptr); + qdf_mem_free(msg->bodyptr); break; #endif /* FEATURE_WLAN_EXTSCAN */ case WMA_SET_SCAN_MAC_OUI_REQ: