Просмотр исходного кода

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
Liangwei Dong 8 лет назад
Родитель
Сommit
df50df97c3
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      core/sap/src/sap_module.c

+ 2 - 0
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);