qcacld-3.0: Free the memory in wma_rx_invalid_peer_ind

Free the memory in wma_rx_invalid_peer_ind in case the
indication is dropped.

Change-Id: I8e1d1fccd15e3af08b04d44670f31eb8f11fbe95
CRs-Fixed: 2550819
This commit is contained in:
Tushnim Bhattacharyya
2019-10-22 12:25:37 -07:00
committed by nshrivas
parent f67c42598d
commit dd4e60dd31

View File

@@ -3181,6 +3181,7 @@ uint8_t wma_rx_invalid_peer_ind(uint8_t vdev_id, void *wh)
wma_debug_rl("Ignore invalid peer indication as received more than once " wma_debug_rl("Ignore invalid peer indication as received more than once "
QDF_MAC_ADDR_STR, QDF_MAC_ADDR_STR,
QDF_MAC_ADDR_ARRAY(rx_inv_msg->ra)); QDF_MAC_ADDR_ARRAY(rx_inv_msg->ra));
qdf_mem_free(rx_inv_msg);
} }
return 0; return 0;