summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Huang <wilhuang@codeaurora.org>2019-05-14 15:39:13 +0800
committernshrivas <nshrivas@codeaurora.org>2019-05-23 01:28:53 -0700
commitece327a105aad8ac86c66d690b036b3dbc002bab (patch)
tree11ae4deec947ec4998ff119805a6097c24b35bee
parentded9acb178ef7d9e780197e943e24fa85b838a31 (diff)
qcacld-3.0: Fix possible memory leak when set station key
If calling lim_send_set_sta_key_req with sendRsp==false, it didn't free the tpSetStaKeyParams memory allocated in this function. This scenario is possible hit when station key update during roaming before new bss adding. Change-Id: I29209576622bc2495a7ce3064e82efca2e70d19a CRs-Fixed: 2452108
-rw-r--r--core/wma/src/wma_mgmt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c
index 5631f1b30328..d09813fd949a 100644
--- a/core/wma/src/wma_mgmt.c
+++ b/core/wma/src/wma_mgmt.c
@@ -2214,6 +2214,8 @@ out:
if (key_info->sendRsp)
wma_send_msg_high_priority(wma_handle, WMA_SET_STAKEY_RSP,
(void *)key_info, 0);
+ else
+ qdf_mem_free(key_info);
}
/**