diff options
| author | Pragaspathi Thilagaraj <tpragasp@codeaurora.org> | 2018-06-15 12:36:59 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-06-20 09:08:21 -0700 |
| commit | cc9eabb8298ee4a09e40a187b2c60f714c8a3deb (patch) | |
| tree | 2af1f99716f632ea2eb249a85411696c2ae4f915 | |
| parent | 12a6493a132dea33be0c0bd01eb7c4c21fbd098b (diff) | |
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 the 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
| -rw-r--r-- | core/wma/src/wma_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index b2d8108a46ce..73603727f412 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -7929,6 +7929,7 @@ QDF_STATUS wma_mc_process_msg(void *cds_context, cds_msg_t *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: |
