Browse Source

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
Naveen Rawat 7 years ago
parent
commit
4b1aab96e1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/mac/src/pe/lim/lim_api.c

+ 2 - 1
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 */