summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-05-29 17:15:04 -0300
committerDan Winship <danw@gnome.org>2013-10-24 12:25:08 -0400
commit83c5a69126fe2363bab5c06881d34562b1674bcf (patch)
tree522460399742037e97f002973484a4b34d126a91
parentb7e1a39521722c50f6cf83aafe6127b0ffe459f8 (diff)
downloadNetworkManager-83c5a69126fe2363bab5c06881d34562b1674bcf.tar.gz
libnm-util: fix a leak in NMSettingIP6Config
-rw-r--r--libnm-util/nm-setting-ip6-config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libnm-util/nm-setting-ip6-config.c b/libnm-util/nm-setting-ip6-config.c
index 3ac067046e..21c1cd2b74 100644
--- a/libnm-util/nm-setting-ip6-config.c
+++ b/libnm-util/nm-setting-ip6-config.c
@@ -770,8 +770,7 @@ finalize (GObject *object)
g_free (priv->method);
g_free (priv->dhcp_hostname);
- g_slist_free (priv->dns);
-
+ g_slist_free_full (priv->dns, g_free);
g_slist_free_full (priv->dns_search, g_free);
g_slist_free_full (priv->addresses, g_free);
g_slist_free_full (priv->routes, g_free);