core: fix memory leak in nm-dhcp-dhclient

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2013-10-21 17:42:53 +02:00
parent e670528778
commit 35b19dcfc3

View file

@ -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;
}