Parcourir la source

qcacld-3.0: Mem leak in wlan_cm_dual_sta_roam_update_connect_channels

Fix possible memory leak while updating dual sta connect channel list
in wlan_cm_dual_sta_roam_update_connect_channels.

Change-Id: I39dc05e485a0f00189978a38fa927a6ec4bd0086
CRs-Fixed: 3035192
abhinav kumar il y a 3 ans
Parent
commit
ef572ecce3

+ 2 - 0
components/umac/mlme/connection_mgr/dispatcher/src/wlan_cm_roam_api.c

@@ -561,6 +561,8 @@ wlan_cm_dual_sta_roam_update_connect_channels(struct wlan_objmgr_psoc *psoc,
 	if (filter->num_of_channels)
 		mlme_debug("Freq list (%d): %s", filter->num_of_channels,
 			   chan_buff);
+
+	qdf_mem_free(chan_buff);
 }
 
 void