qcacmn: Fix memory leak in ucfg_scan_init_chanlist_params
Regulatory channel list is allocated memory while initializing, but isn't being freed. This change will free the list and fix the possible resource leak. Change-Id: I4603271697603cdacbfe4cbf327faad8ce582715 CRs-Fixed: 2348117
This commit is contained in:

committed by
nshrivas

parent
5728624cee
commit
f5caeedb42
@@ -1847,6 +1847,9 @@ end:
|
||||
if (scan_freqs)
|
||||
qdf_mem_free(scan_freqs);
|
||||
|
||||
if (reg_chan_list)
|
||||
qdf_mem_free(reg_chan_list);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user