diff options
| author | Kapil Gupta <kapgupta@codeaurora.org> | 2016-10-18 12:05:44 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-10-24 10:58:54 -0700 |
| commit | c797b62f4cff86e69ab6f76681d9bce23f8a3292 (patch) | |
| tree | 3c53d36587d5b0012bb9915682134eff94a17630 /core/mac | |
| parent | e2e3dfd9977fed08865a006df5fccb647452a006 (diff) | |
qcacld-3.0: Fix memory leak issue
qcacld-2.0 to qcacld-3.0 propagation
Memory allocated to Ibss peers for IEs info is not getting freed
in some cases.
Add changes to fix memory leak.
CRs-Fixed: 1075406
Change-Id: Ie22b70cb5050c2646e3c2c12fcbdf66255c1284b
Diffstat (limited to 'core/mac')
| -rw-r--r-- | core/mac/src/pe/lim/lim_ibss_peer_mgmt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/mac/src/pe/lim/lim_ibss_peer_mgmt.c b/core/mac/src/pe/lim/lim_ibss_peer_mgmt.c index fe04d3f6b952..4e5f6fe96c4a 100644 --- a/core/mac/src/pe/lim/lim_ibss_peer_mgmt.c +++ b/core/mac/src/pe/lim/lim_ibss_peer_mgmt.c @@ -1123,6 +1123,8 @@ __lim_ibss_search_and_delete_peer(tpAniSirGlobal mac_ptr, mac_ptr->lim.gLimIbssPeerList; } else prev_node->next = temp_node->next; + if (temp_node->beacon) + qdf_mem_free(temp_node->beacon); qdf_mem_free(temp_node); mac_ptr->lim.gLimNumIbssPeers--; @@ -1667,6 +1669,8 @@ void lim_ibss_heart_beat_handle(tpAniSirGlobal mac_ctx, tpPESession session) prevnode->next = tempnode->next; } + if (tempnode->beacon) + qdf_mem_free(tempnode->beacon); qdf_mem_free(tempnode); mac_ctx->lim.gLimNumIbssPeers--; |
