summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2013-10-21 17:42:53 +0200
committerThomas Haller <thaller@redhat.com>2013-10-22 19:53:57 +0200
commit35b19dcfc3476559fbebe5c0e42ad1ba4f726304 (patch)
tree10cc812ca4408e7f622b6f26ec27d4a374738844
parente670528778d0034693eabb140f1f2709e5e78a3a (diff)
downloadNetworkManager-35b19dcfc3476559fbebe5c0e42ad1ba4f726304.tar.gz
core: fix memory leak in nm-dhcp-dhclient
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--src/dhcp-manager/nm-dhcp-dhclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcp-manager/nm-dhcp-dhclient.c b/src/dhcp-manager/nm-dhcp-dhclient.c
index 4e3a28f835..e6fa77a675 100644
--- a/src/dhcp-manager/nm-dhcp-dhclient.c
+++ b/src/dhcp-manager/nm-dhcp-dhclient.c
@@ -337,7 +337,7 @@ nm_dhcp_dhclient_get_lease_config (const char *iface, const char *uuid, gboolean
}
out:
- g_slist_foreach (parsed, (GFunc) g_hash_table_destroy, NULL);
+ g_slist_free_full (parsed, (GDestroyNotify) g_hash_table_destroy);
g_free (leasefile);
return leases;
}