summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2018-09-26 15:14:58 +0200
committerThomas Haller <thaller@redhat.com>2018-10-23 09:10:06 +0200
commit147081bd72c896b944059ac1538cf599b3b95632 (patch)
tree25f076e225c30e01c99650757ec62d8cdd65a742
parent506f78148839ab8bc898dcd04c79ed76478915c7 (diff)
dhcp: dhclient: fix memory leak
-rw-r--r--src/dhcp/nm-dhcp-dhclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dhcp/nm-dhcp-dhclient.c b/src/dhcp/nm-dhcp-dhclient.c
index 4a9361781..33c267123 100644
--- a/src/dhcp/nm-dhcp-dhclient.c
+++ b/src/dhcp/nm-dhcp-dhclient.c
@@ -142,6 +142,7 @@ get_dhclient_leasefile (int addr_family,
iface);
if (g_file_test (path, G_FILE_TEST_EXISTS)) {
+ g_free (rundir_path);
NM_SET_OUT (out_preferred_path, g_strdup (path));
return path;
}