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:
Abhiram Jogadenu
2018-11-12 12:01:20 +05:30
committed by nshrivas
parent 5728624cee
commit f5caeedb42

View File

@@ -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;
}