prima: In hdd_SendFTEvent(), free the buffer in case of error
qcacld-2.0 to prima propagation
Currently in hdd_SendFTEvent, buffer to store IEs is not getting free
in case of auth_resp_len is zero.
Update code to free the allocated buffer.
Change-Id: I73a422caad60769ee8f19605a8efbcb20ecb11d5
CRs-fixed: 859397
diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c
index 3a1bf9f..bed4281 100644
--- a/CORE/HDD/src/wlan_hdd_assoc.c
+++ b/CORE/HDD/src/wlan_hdd_assoc.c
@@ -505,6 +505,7 @@
if (auth_resp_len == 0)
{
hddLog(LOGE, "%s: AuthRsp FTIES is of length 0", __func__);
+ kfree(buff);
return;
}