summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirav Shah <nnshah@qti.qualcomm.com>2014-10-14 05:02:41 +0530
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2014-10-14 17:52:33 +0530
commit8006bc922adcf9c4e0905affe9133ef46c6916be (patch)
treef7da4f695b5291afe8ccc229e275aef3cc8b87bb
parent6ad1677fcb7feceabaf663c407ad375dc14699e6 (diff)
qcacld: Free correct pointer to avoid doublefree
Free correct pointer to avoid doublefree in wma_tbttoffset_update_event_handler. Change-Id: I360fe88d35c6695f93d1f21e97dd86430822570a CRs-Fixed: 738196
-rw-r--r--CORE/SERVICES/WMA/wma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index f3be086facea..ccbcf1ca3601 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -15037,7 +15037,7 @@ static int wma_tbttoffset_update_event_handler(void *handle, u_int8_t *event,
if (VOS_STATUS_SUCCESS !=
vos_mq_post_message(VOS_MQ_ID_WDA, &vos_msg)) {
WMA_LOGP("%s: Failed to post WDA_TBTT_UPDATE_IND msg", __func__);
- vos_mem_free(buf);
+ vos_mem_free(tempBuf);
return -1;
}
WMA_LOGD("WDA_TBTT_UPDATE_IND posted");