mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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
This commit is contained in:
parent
e2e3dfd997
commit
c797b62f4c
1 changed files with 4 additions and 0 deletions
|
|
@ -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--;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue