From 351b7c9b7b9e4e3d860c12f13b3f72aacabc0ae7 Mon Sep 17 00:00:00 2001 From: hangtian Date: Thu, 17 Jan 2019 16:52:45 +0800 Subject: [PATCH] qcacld-3.0: Free memory allocated for WMI_SERVICE_READY_EVENTID Free memory allocated for WMI_SERVICE_READY_EVENTID in wma_close. Change-Id: I1788fdbcdda9488ef8ad9fe511a7f1b06e250159 CRs-Fixed: 2381818 --- core/wma/src/wma_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 5b92404876ea..e7c779f8c6dc 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -93,6 +93,7 @@ #include "wlan_mlme_api.h" #include "wlan_mlme_ucfg_api.h" #include "cfg_ucfg_api.h" +#include "init_cmd_api.h" #define WMA_LOG_COMPLETION_TIMER 3000 /* 3 seconds */ #define WMI_TLV_HEADROOM 128 @@ -4744,6 +4745,7 @@ QDF_STATUS wma_wmi_work_close(void) QDF_STATUS wma_close(void) { tp_wma_handle wma_handle; + struct target_psoc_info *tgt_psoc_info; QDF_STATUS qdf_status = QDF_STATUS_SUCCESS; WMA_LOGD("%s: Enter", __func__); @@ -4826,6 +4828,8 @@ QDF_STATUS wma_close(void) pmo_unregister_pause_bitmap_notifier(wma_handle->psoc); pmo_unregister_get_vdev_dp_handle(wma_handle->psoc); + tgt_psoc_info = wlan_psoc_get_tgt_if_handle(wma_handle->psoc); + init_deinit_free_num_units(wma_handle->psoc, tgt_psoc_info); target_if_free_psoc_tgt_info(wma_handle->psoc); wlan_objmgr_psoc_release_ref(wma_handle->psoc, WLAN_LEGACY_WMA_ID);