qcacmn: Fix memory leak in 6GHz channel update

Fix memory leak in 6GHz channel list update for scan manager.

In scm_update_6ghz_channel_list function dynamic memory allocation
for local variable was not freed. This was cusing memory leak during
module unload.

CRs-Fixed: 2558436
Change-Id: I9535a3621e0fc5916cdf39934fec7c51c1b8e32b
This commit is contained in:
Subrat Mishra 2019-11-04 17:05:57 +05:30 • committed by nshrivas
commit 76b7920e40

View file

@ -882,6 +882,7 @@ scm_update_6ghz_channel_list(struct wlan_objmgr_vdev *vdev,
chan_list_6g[i].center_freq;
}
}
qdf_mem_free(chan_list_6g);
}
scm_debug("Number of channels to scan %d", num_scan_channels);
for (i = 0; i < num_scan_channels; i++)