Forráskód Böngészése

qcacld-3.0: Resolve memory leak issues

qcacld-2.0 to qcacld-3.0  propagation

In SME, while processing set beacon parameters, free
dynamically allocated memory, once done with the it.

Change-Id: I281ef5eb9492fe75d639b2bef7ed588aacee8e74
CRs-Fixed: 974567
(cherry picked from commit feaa49e6b906f33a98a11f5ee35c947abe5d28bd)
Hanumanth Reddy Pothula 8 éve
szülő
commit
7f7a27115c
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      core/sme/src/common/sme_api.c

+ 2 - 0
core/sme/src/common/sme_api.c

@@ -2174,6 +2174,8 @@ QDF_STATUS sme_set_ese_beacon_request(tHalHandle hHal, const uint8_t sessionId,
 	if (status != QDF_STATUS_SUCCESS)
 		pSmeRrmContext->eseBcnReqInProgress = false;
 
+	qdf_mem_free(pSmeBcnReportReq);
+
 	return status;
 }