summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwadesong <wadesong@codeaurora.org>2016-10-17 16:34:01 +0800
committerwadesong <wadesong@codeaurora.org>2016-10-17 16:39:34 +0800
commitc1a7c23da816499b5ba71d4360fce9240772fa3a (patch)
treea9c717d72ec18158ee5b73541b7611ca5bcd68be
parent4654a0d50da25294829acb6806d833c76c3f1a57 (diff)
qcacld-2.0: Fix memory leak during IPA response message handling
The newly allocated IPA response message should be freed when the IPA UC operation callback function pointer is NULL because no code will free the message anywhere else in that case Change-Id: I3e88d0f0e42c989c4937619a954ff4e00ade379c CRs-Fixed: 1078509
-rw-r--r--CORE/CLD_TXRX/TXRX/ol_txrx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/CORE/CLD_TXRX/TXRX/ol_txrx.c b/CORE/CLD_TXRX/TXRX/ol_txrx.c
index 7cd0917fc95d..53bef249d472 100644
--- a/CORE/CLD_TXRX/TXRX/ol_txrx.c
+++ b/CORE/CLD_TXRX/TXRX/ol_txrx.c
@@ -2710,6 +2710,8 @@ ol_txrx_ipa_uc_op_response(
{
if (pdev->ipa_uc_op_cb) {
pdev->ipa_uc_op_cb(op_msg, pdev->osif_dev);
+ } else {
+ adf_os_mem_free(op_msg);
}
}