mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Fix memory leak in csr_update_lost_link1_cmd
In function csr_update_lost_link1_cmd, memory is allocated to local variable struct scan_filter, further we passing this variable to csr_roam_prepare_filter_from_profile function and allocating memory to the members of the scan_filter. At some point in the function we are returning without freeing memory allocated to scan_filter, which causes memory leak. Make sure to free scan_filter’s memory before returning. Change-Id: I448cf0d4bb16d4769b50c96495038684909e0739 CRs-Fixed: 1048116
This commit is contained in:
parent
3812b9b896
commit
d3bf1115ef
1 changed files with 2 additions and 0 deletions
|
|
@ -869,6 +869,8 @@ csr_update_lost_link1_cmd(tpAniSirGlobal mac_ctx, tSmeCmd *cmd,
|
|||
pSession->connectedProfile.operationChannel;
|
||||
ch_info->numOfChannels = 1;
|
||||
}
|
||||
csr_free_scan_filter(mac_ctx, scan_filter);
|
||||
qdf_mem_free(scan_filter);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue