summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiachao Wu <jiacwu@codeaurora.org>2017-11-21 19:06:42 +0800
committersnandini <snandini@codeaurora.org>2017-11-23 05:17:01 -0800
commit19fcae4a50e0a19fb602d9cf69aac0d5beb028b8 (patch)
treebfc239581e5064b7e838c7f5b5c493c149d9f1e1
parent04aed411926911e4e3ba10798d6ea9482d106798 (diff)
qcacld-3.0: Fix a memory leak in mac
Memory will leak when pe_handle_mgmt_frame receive data frame and FEATURE_WLAN_ESE undefine. Change-Id: I2b3165d7209931e8de5049cd69bf3a3bb48dafd6 CRs-Fixed: 2147025
-rw-r--r--core/mac/src/sys/legacy/src/system/src/sys_entry_func.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mac/src/sys/legacy/src/system/src/sys_entry_func.c b/core/mac/src/sys/legacy/src/system/src/sys_entry_func.c
index 7b496d445012..1c87e3ac37c0 100644
--- a/core/mac/src/sys/legacy/src/system/src/sys_entry_func.c
+++ b/core/mac/src/sys/legacy/src/system/src/sys_entry_func.c
@@ -184,8 +184,8 @@ sys_bbt_process_message_core(tpAniSirGlobal mac_ctx, tpSirMsgQ msg,
goto fail;
}
mac_ctx->sys.gSysBbtPostedToLim++;
- } else if (type == SIR_MAC_DATA_FRAME) {
#ifdef FEATURE_WLAN_ESE
+ } else if (type == SIR_MAC_DATA_FRAME) {
pe_debug("IAPP Frame...");
/* Post the message to PE Queue */
ret = (tSirRetStatus) lim_post_msg_api(mac_ctx, msg);