summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimanshu Agarwal <himanaga@codeaurora.org>2017-12-14 14:37:08 +0530
committersnandini <snandini@codeaurora.org>2017-12-18 17:47:28 -0800
commit0e701e0e2bfbc92a884a02eb4e7f348f38fd6f19 (patch)
tree2f95300bc227d795c206916e8d23c4299c6baacb
parent5bc78607469c83bdfa9ea936e19482bf79c9d9ca (diff)
qcacld-3.0: Free deauth req msg if no ack received from fw
Free deauth req msg, if no ack has been received from fw, in pe_close() during interface down to avoid mem leak. Change-Id: I49508b2681f708dc56fc3938162ff856babfb0aa CRs-Fixed: 2158490
-rw-r--r--core/mac/src/pe/lim/lim_api.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c
index 4cf02f82dc7f..68d98dc44391 100644
--- a/core/mac/src/pe/lim/lim_api.c
+++ b/core/mac/src/pe/lim/lim_api.c
@@ -841,6 +841,11 @@ tSirRetStatus pe_close(tpAniSirGlobal pMac)
qdf_list_destroy(&pMac->lim.gLimMgmtFrameRegistratinQueue);
qdf_mutex_destroy(&pMac->lim.lim_frame_register_lock);
+ if (pMac->lim.limDisassocDeauthCnfReq.pMlmDeauthReq) {
+ qdf_mem_free(pMac->lim.limDisassocDeauthCnfReq.pMlmDeauthReq);
+ pMac->lim.limDisassocDeauthCnfReq.pMlmDeauthReq = NULL;
+ }
+
qdf_spinlock_destroy(&pMac->sys.bbt_mgmt_lock);
for (i = 0; i < pMac->lim.maxBssId; i++) {
if (pMac->lim.gpSession[i].valid == true)