summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajesh Chauhan <rajeshc@qca.qualcomm.com>2014-04-23 18:38:12 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-04-26 00:48:14 -0700
commit0c5e3285f16ea565c9506889df7af738bd6a5da2 (patch)
treea88722d6c5bfd1c95bcdff194ed3cdb979c8a1a2
parent5df82715b760a016e4ce25fa1a76d693f9584d81 (diff)
qcacld: fix memory leak in handling of OEM Data Request
Fix memory leak for OEM data request buffer in WMA. Change-Id: I7381c8fc3d91c0d0bc6ec398f6d272b8334f4615 CRs-Fixed: 654243
-rw-r--r--CORE/SERVICES/WMA/wma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index 4650c082462b..6d9b64829a92 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -13774,6 +13774,10 @@ static void wma_start_oem_data_req(tp_wma_handle wma_handle,
}
out:
+ /* free oem data req buffer received from UMAC */
+ if (startOemDataReq)
+ vos_mem_free(startOemDataReq);
+
/* Now send data resp back to PE/SME with message sub-type of
* WMI_OEM_INTERNAL_RSP. This is required so that PE/SME clears
* up pending active command. Later when desired oem response(s)