diff options
| author | yeshwanth sriram guntuka <ysriramg@codeaurora.org> | 2016-12-08 17:33:10 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-12-11 21:51:50 -0800 |
| commit | 7a02c15c6372f91afdd8ffb8f7bbc912091bb146 (patch) | |
| tree | bac9e1c764f691b12d249ebc9066a61011c90a36 | |
| parent | e694b6b736062150a6fcae528937173b1089ca19 (diff) | |
qcacld-3.0: Fix memory leak in CSR
Memory leak in csr_roam_synch_callback due to not
freeing memory allocated using
csr_get_parsed_bss_description_ies.
Free the memory in function csr_roam_synch_callback.
Change-Id: Iab8454850eabe029df4a3e0d868ca461686ed72f
CRs-Fixed: 1098966
| -rw-r--r-- | core/sme/src/csr/csr_api_roam.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index c4a634148e57..c14b762b2747 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -19617,6 +19617,7 @@ void csr_roam_synch_callback(tpAniSirGlobal mac_ctx, QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_DEBUG, FL("LFR3: Mem Alloc failed for roam info")); session->roam_synch_in_progress = false; + qdf_mem_free(ies_local); sme_release_global_lock(&mac_ctx->sme); return; } @@ -19687,6 +19688,7 @@ void csr_roam_synch_callback(tpAniSirGlobal mac_ctx, session->roam_synch_in_progress = false; if (roam_info) qdf_mem_free(roam_info); + qdf_mem_free(ies_local); sme_release_global_lock(&mac_ctx->sme); return; } @@ -19804,6 +19806,7 @@ void csr_roam_synch_callback(tpAniSirGlobal mac_ctx, session->roam_synch_in_progress = false; qdf_mem_free(roam_info->pbFrames); qdf_mem_free(roam_info); + qdf_mem_free(ies_local); sme_release_global_lock(&mac_ctx->sme); } #endif |
