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
This commit is contained in:
Naveen Rawat 2017-05-23 11:37:09 -07:00 • committed by snandini
commit 4b1aab96e1

View file

@ -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 */