diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-10-21 06:35:12 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-21 06:35:12 -0700 |
| commit | 41a7ff210daaf4266b82eba5e07034eb1d69b8ec (patch) | |
| tree | ea68d9730d4ad85695e9daf29f0c9c6de60ac0f7 | |
| parent | 8b762c5e3dec2b9269b64551c3e43eee76d68e4c (diff) | |
| parent | 1b840cc4f3f08b3e9759ab80aac9742297774a7d (diff) | |
Merge "qcacld-2.0: Fix memory leak issue" into wlan-cld2.driver.lnx.1.0-dev
| -rw-r--r-- | CORE/MAC/src/pe/lim/limIbssPeerMgmt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CORE/MAC/src/pe/lim/limIbssPeerMgmt.c b/CORE/MAC/src/pe/lim/limIbssPeerMgmt.c index cba481b965f5..d5ffb77114cf 100644 --- a/CORE/MAC/src/pe/lim/limIbssPeerMgmt.c +++ b/CORE/MAC/src/pe/lim/limIbssPeerMgmt.c @@ -1128,7 +1128,8 @@ __limIbssSearchAndDeletePeer(tpAniSirGlobal pMac, pPrevNode = pMac->lim.gLimIbssPeerList; } else pPrevNode->next = pTempNode->next; - + if (pTempNode->beacon) + vos_mem_free(pTempNode->beacon); vos_mem_free(pTempNode); pMac->lim.gLimNumIbssPeers--; @@ -1643,6 +1644,8 @@ void limIbssHeartBeatHandle(tpAniSirGlobal pMac,tpPESession psessionEntry) else pPrevNode->next = pTempNode->next; + if (pTempNode->beacon) + vos_mem_free(pTempNode->beacon); vos_mem_free(pTempNode); pMac->lim.gLimNumIbssPeers--; |
