Przeglądaj źródła

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
Abhiram Jogadenu 6 lat temu
rodzic
commit
f5caeedb42
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

+ 3 - 0
umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

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