qcacld-3.0: Fix SapAllChnlList memory leak

qcacld-2.0 to qcacld-3.0 propagation

"MEMORY_DEBUG" enabled driver shows the
SapAllChnlList is not freed upon driver unloading
in SNS test. This commit fixes this issue by
freeing channel list in WLANSAP_CLOSE API.

Change-Id: I1c954336e14746060fec19f3ad89b3d4882306af
CRs-Fixed: 985334
This commit is contained in:
Liangwei Dong 2016-09-29 03:06:50 -04:00 • committed by Prakash Dhavali
commit df50df97c3

View file

@ -456,6 +456,8 @@ QDF_STATUS wlansap_close(void *pCtx)
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
"wlansap_close");
sap_cleanup_channel_list(pCtx);
/* empty queues/lists/pkts if any */
wlansap_clean_cb(pSapCtx, true);