settings: fix memory leak in get_settings_auth_cb()

Signed-off-by: Thomas Haller <thaller@redhat.com>
(cherry picked from commit fe6b002f0f)
This commit is contained in:
Thomas Haller 2014-08-19 00:21:54 +02:00
parent 742f1da1d1
commit 624e92a20c

View file

@ -1159,10 +1159,9 @@ get_settings_auth_cb (NMSettingsConnection *self,
*/
bssid_list = nm_settings_connection_get_seen_bssids (self);
s_wifi = nm_connection_get_setting_wireless (NM_CONNECTION (dupl_con));
if (bssid_list && s_wifi) {
if (bssid_list && s_wifi)
g_object_set (s_wifi, NM_SETTING_WIRELESS_SEEN_BSSIDS, bssid_list, NULL);
g_slist_free_full (bssid_list, g_free);
}
g_slist_free_full (bssid_list, g_free);
/* 802-11-wireless.security property is deprecated. But we set it here so that
* we don't disturb old clients that might expect it being properly set for