mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
qcacld-3.0: Fix memory leak in scan
Free the scan request parameters after scan request is posted to scan queue. Change-Id: I370249f9ef6b4180a106acb5e6929351ad4a0467 CRs-Fixed: 964341
This commit is contained in:
parent
a8d2f52f66
commit
c8f0c797a4
1 changed files with 2 additions and 0 deletions
|
|
@ -1733,6 +1733,7 @@ static CDF_STATUS sme_handle_scan_req(tpAniSirGlobal mac_ctx,
|
|||
FL("scan request failed. session_id %d"), session_id);
|
||||
}
|
||||
csr_scan_free_request(mac_ctx, scan_msg->scan_param);
|
||||
cdf_mem_free(scan_msg->scan_param);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
@ -2989,6 +2990,7 @@ CDF_STATUS sme_scan_request(tHalHandle hal, uint8_t session_id,
|
|||
sms_log(mac_ctx, LOGE,
|
||||
" sme_scan_req failed to post msg");
|
||||
csr_scan_free_request(mac_ctx, scan_msg->scan_param);
|
||||
cdf_mem_free(scan_msg->scan_param);
|
||||
cdf_mem_free(scan_msg);
|
||||
status = CDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue