diff options
| author | Rajeev Kumar <rajekuma@qca.qualcomm.com> | 2014-01-31 19:38:50 -0800 |
|---|---|---|
| committer | Prakash Dhavali <pdhavali@qca.qualcomm.com> | 2014-02-05 21:06:44 -0800 |
| commit | 190d5090a69371d16308378bd10ecaf594c300cc (patch) | |
| tree | 854b8308d1a124ea48572d4ae09899a7d88ad281 | |
| parent | ce28b982606fbe46407922465e4c50ed581b8532 (diff) | |
qcacld: Fix of memory leaks in WMA module
Fixing memory leak issues in WMA module reported by
stability team on SLUB debug builds
Change-Id: Id26925527de4f90f630a3114cf067b08f19e15be
CRs-Fixed: 610414
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index 7e3fc61298b5..cd0b16261e65 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -14166,13 +14166,16 @@ VOS_STATUS wma_mc_process_msg(v_VOID_t *vos_context, vos_msg_t *msg) break; case WDA_START_SCAN_OFFLOAD_REQ: wma_start_scan(wma_handle, msg->bodyptr, msg->type); + vos_mem_free(msg->bodyptr); break; case WDA_STOP_SCAN_OFFLOAD_REQ: wma_stop_scan(wma_handle, msg->bodyptr); + vos_mem_free(msg->bodyptr); break; case WDA_UPDATE_CHAN_LIST_REQ: wma_update_channel_list(wma_handle, (tSirUpdateChanList *)msg->bodyptr); + vos_mem_free(msg->bodyptr); break; case WDA_SET_LINK_STATE: wma_set_linkstate(wma_handle, @@ -14208,6 +14211,7 @@ VOS_STATUS wma_mc_process_msg(v_VOID_t *vos_context, vos_msg_t *msg) wma_process_update_edca_param_req( wma_handle, (tEdcaParams *)msg->bodyptr); + vos_mem_free(msg->bodyptr); break; case WDA_SEND_BEACON_REQ: wma_send_beacon(wma_handle, @@ -14306,6 +14310,7 @@ VOS_STATUS wma_mc_process_msg(v_VOID_t *vos_context, vos_msg_t *msg) case WDA_UPDATE_BEACON_IND: wma_process_update_beacon_params(wma_handle, (tUpdateBeaconParams *)msg->bodyptr); + vos_mem_free(msg->bodyptr); break; case WDA_ADD_TS_REQ: @@ -14451,6 +14456,7 @@ VOS_STATUS wma_mc_process_msg(v_VOID_t *vos_context, vos_msg_t *msg) case WDA_INIT_THERMAL_INFO_CMD: wma_process_init_thermal_info(wma_handle, (t_thermal_mgmt *)msg->bodyptr); + vos_mem_free(msg->bodyptr); break; case WDA_SET_THERMAL_LEVEL: |
