summary refs log tree commit diff
path: root/src/nm-policy-hosts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nm-policy-hosts.c')
-rw-r--r--src/nm-policy-hosts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nm-policy-hosts.c b/src/nm-policy-hosts.c
index 94eeac4f..3f3fb35c 100644
--- a/src/nm-policy-hosts.c
+++ b/src/nm-policy-hosts.c
@@ -75,6 +75,8 @@ nm_policy_hosts_clean_etc_hosts (void)
 	}
 
 	new = nm_policy_get_etc_hosts (contents, contents_len);
+	g_free (contents);
+
 	if (new && new->len) {
 		nm_log_dbg (LOGD_DNS, "Cleaning leftovers from /etc/hosts");