From 4b1aab96e148838a498dbfae1a571117d3824ca2 Mon Sep 17 00:00:00 2001 From: Naveen Rawat Date: Tue, 23 May 2017 11:37:09 -0700 Subject: [PATCH] qcacld-3.0: Free gpLimRemainOnChanReq in lim_cleanup In case remain on channel response is pending when wlan unloads, this memory will leak. Free gpLimRemainOnChanReq memory when lim_cleanup is called to avoid leak. Change-Id: Ibf47bbc4b7eb5ce9509998cd40d0c3ce54e4da62 CRs-Fixed: 2051164 --- core/mac/src/pe/lim/lim_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c index 0987902b891e..b8041c982f9f 100644 --- a/core/mac/src/pe/lim/lim_api.c +++ b/core/mac/src/pe/lim/lim_api.c @@ -618,7 +618,8 @@ void lim_cleanup(tpAniSirGlobal pMac) qdf_mutex_release(&pMac->lim.lim_frame_register_lock); qdf_list_destroy(&pMac->lim.gLimMgmtFrameRegistratinQueue); qdf_mutex_destroy(&pMac->lim.lim_frame_register_lock); - + qdf_mem_free(pMac->lim.gpLimRemainOnChanReq); + pMac->lim.gpLimRemainOnChanReq = NULL; lim_cleanup_mlm(pMac); /* free up preAuth table */