summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2013-03-26 17:46:49 -0500
committerDan Williams <dcbw@redhat.com>2013-04-01 17:18:53 -0500
commitfaf376dad14f6fff6b5be8d67173e9fb8a922220 (patch)
tree7d3d7dbd2da5a716ba4bcf17dda379b514f75b87
parentb1fc88154b9ccc16205a5279f8eb9789f2f9d902 (diff)
downloadNetworkManager-faf376dad14f6fff6b5be8d67173e9fb8a922220.tar.gz
libnm-util: fix memory leaks of dhcp_hostname and dhcp_client_id
-rw-r--r--libnm-util/nm-setting-ip4-config.c2
-rw-r--r--libnm-util/nm-setting-ip6-config.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/libnm-util/nm-setting-ip4-config.c b/libnm-util/nm-setting-ip4-config.c
index 1f0a7a6a58..1c8419c399 100644
--- a/libnm-util/nm-setting-ip4-config.c
+++ b/libnm-util/nm-setting-ip4-config.c
@@ -838,6 +838,8 @@ finalize (GObject *object)
NMSettingIP4ConfigPrivate *priv = NM_SETTING_IP4_CONFIG_GET_PRIVATE (self);
g_free (priv->method);
+ g_free (priv->dhcp_hostname);
+ g_free (priv->dhcp_client_id);
g_array_free (priv->dns, TRUE);
diff --git a/libnm-util/nm-setting-ip6-config.c b/libnm-util/nm-setting-ip6-config.c
index 11eb15cec6..5768fa5929 100644
--- a/libnm-util/nm-setting-ip6-config.c
+++ b/libnm-util/nm-setting-ip6-config.c
@@ -756,6 +756,8 @@ finalize (GObject *object)
NMSettingIP6ConfigPrivate *priv = NM_SETTING_IP6_CONFIG_GET_PRIVATE (object);
g_free (priv->method);
+ g_free (priv->dhcp_hostname);
+
g_slist_free (priv->dns);
nm_utils_slist_free (priv->dns_search, g_free);