diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c index 58146b16644d..88c566eea7d2 100644 --- a/core/wma/src/wma_mgmt.c +++ b/core/wma/src/wma_mgmt.c @@ -3855,6 +3855,7 @@ static int wma_mgmt_rx_process(void *handle, uint8_t *data, if (mgmt_rx_params->buf_len > data_len) { WMA_LOGE("%s: Invalid rx mgmt packet, data_len %u, mgmt_rx_params->buf_len %u", __func__, data_len, mgmt_rx_params->buf_len); + qdf_mem_free(mgmt_rx_params); return -EINVAL; }