summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryeshwanth sriram guntuka <ysriramg@codeaurora.org>2017-01-27 15:37:32 +0530
committerqcabuildsw <qcabuildsw@localhost>2017-01-30 03:41:18 -0800
commit43e3101305da16205c0883101dc84b5cc3d275f7 (patch)
treecd2255b1d15b776035d33673b8a5d5f01cc8b680
parentd5b17bbc6591dce173818fa0f6b2001c9ec66be8 (diff)
qcacld-3.0: Fix memory leak in CSR
Memory leak in csr_scan_save_roam_offload_ap_to_scan_cache due to not freeing memory allocated using csr_get_parsed_bss_description_ies. Free memory in csr_scan_save_roam_offload_ap_to_scan_cache function. Change-Id: I6487dc5964e0e671b429f256e001fcb9d117f44b CRs-Fixed: 1116621
-rw-r--r--core/sme/src/csr/csr_api_scan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c
index cdbd77ca2787..78ecbf54ced4 100644
--- a/core/sme/src/csr/csr_api_scan.c
+++ b/core/sme/src/csr/csr_api_scan.c
@@ -7426,6 +7426,8 @@ QDF_STATUS csr_scan_save_roam_offload_ap_to_scan_cache(tpAniSirGlobal pMac,
sms_log(pMac, LOG1, FL("LFR3:Add BSSID to scan cache" MAC_ADDRESS_STR),
MAC_ADDR_ARRAY(scan_res_ptr->Result.BssDescriptor.bssId));
csr_scan_add_result(pMac, scan_res_ptr, ies_local_ptr, session_id);
+ if ((scan_res_ptr->Result.pvIes == NULL) && ies_local_ptr)
+ qdf_mem_free(ies_local_ptr);
return QDF_STATUS_SUCCESS;
}
#endif