qcacmn: Fix memory leak in wifi_pos send peer status api

In function os_if_wifi_pos_send_peer_status free buffer used to send
peer status indication to userspace after use.

Change-Id: Id90ea35aef4584d0ee7ef856d5cd12104eb089a4
CRs-Fixed: 2030121
This commit is contained in:
Naveen Rawat
2017-04-06 07:41:12 -07:00
committed by Sandeep Puligilla
parent c068709444
commit d35749f195

View File

@@ -316,7 +316,7 @@ void os_if_wifi_pos_send_peer_status(struct qdf_mac_addr *peer_mac,
os_if_wifi_pos_send_rsp(wifi_pos_get_app_pid(psoc),
ANI_MSG_PEER_STATUS_IND,
sizeof(*peer_info), (uint8_t *)peer_info);
return;
qdf_mem_free(peer_info);
}
void os_if_wifi_pos_set_ftm_cap(struct wlan_objmgr_psoc *psoc, uint32_t val)