From e714b030ee2ba1ee40a119030e4e903cd6be7eb9 Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Thu, 29 Sep 2016 03:06:50 -0400 Subject: 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 --- core/sap/src/sap_module.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index ef5f63c2fdd2..ba469312d551 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -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); -- cgit v1.2.3