mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-03 04:17:59 +02:00
core: fix memory leak in nm-dhcp-dhclient
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
e670528778
commit
35b19dcfc3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue