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
Cette révision appartient à :
Pragaspathi Thilagaraj
2018-06-15 14:20:26 +05:30
révisé par nshrivas
Parent 3639a6415b
révision f65cffe88c

Voir le fichier

@@ -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: