diff --git a/core/hdd/src/wlan_hdd_station_info.c b/core/hdd/src/wlan_hdd_station_info.c index 96b0509fecc7..6c03febbe333 100644 --- a/core/hdd/src/wlan_hdd_station_info.c +++ b/core/hdd/src/wlan_hdd_station_info.c @@ -1651,6 +1651,7 @@ static int hdd_get_peer_stats(struct hdd_adapter *adapter, stainfo->sta_mac.bytes, peer_stats); if (status != QDF_STATUS_SUCCESS) { hdd_err("cdp_host_get_peer_stats failed"); + qdf_mem_free(peer_stats); return -EINVAL; }