qcacmn: Fix Mem leak in scm_sort_6ghz_channel_list()

Free memory in error cases for rnr_chan_info

Change-Id: Ia879dd8857a4af331bf2f41aefe0551c1f8976e7
CRs-Fixed: 2670414
This commit is contained in:
Utkarsh Bhatnagar 2020-04-23 18:33:27 +05:30 • committed by nshrivas
commit d34f264b07

View file

@ -964,6 +964,7 @@ static void scm_sort_6ghz_channel_list(struct wlan_objmgr_vdev *vdev,
psoc = wlan_vdev_get_psoc(vdev);
if (!psoc) {
scm_err("Psoc is NULL");
qdf_mem_free(rnr_chan_info);
return;
}