qcacld-3.0: Fix memory leak in hdd_send_re_assoc_event

In case kmalloc fail goto end of function and properly free
other possible allocated memory buffers.

Change-Id: I41d7577471b475b0a2a0daa83c6ffc845314ceb4
CRs-Fixed: 958755
This commit is contained in:
Naveen Rawat 2016-01-06 18:32:14 -08:00 • committed by Akash Patel
commit dafda298f3

View file

@ -1379,12 +1379,12 @@ static void hdd_send_re_assoc_event(struct net_device *dev,
if (!rspRsnIe) {
hddLog(LOGE, FL("Unable to allocate RSN IE"));
return;
goto done;
}
if (!assoc_req_ies) {
hdd_err("Unable to allocate Assoc Req IE");
return;
goto done;
}
if (pCsrRoamInfo == NULL) {
hddLog(LOGE, FL("Invalid CSR roam info"));