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
This commit is contained in:

committed by
nshrivas

parent
3639a6415b
commit
f65cffe88c
@@ -8220,6 +8220,7 @@ static QDF_STATUS wma_mc_process_msg(struct scheduler_msg *msg)
|
|||||||
case WMA_RESET_PASSPOINT_LIST_REQ:
|
case WMA_RESET_PASSPOINT_LIST_REQ:
|
||||||
wma_reset_passpoint_network_list(wma_handle,
|
wma_reset_passpoint_network_list(wma_handle,
|
||||||
(struct wifi_passpoint_req *)msg->bodyptr);
|
(struct wifi_passpoint_req *)msg->bodyptr);
|
||||||
|
qdf_mem_free(msg->bodyptr);
|
||||||
break;
|
break;
|
||||||
#endif /* FEATURE_WLAN_EXTSCAN */
|
#endif /* FEATURE_WLAN_EXTSCAN */
|
||||||
case WMA_SET_SCAN_MAC_OUI_REQ:
|
case WMA_SET_SCAN_MAC_OUI_REQ:
|
||||||
|
Reference in New Issue
Block a user