dhcp: dhclient: fix memory leak

Fixes: c263f5355c
This commit is contained in:
Beniamino Galvani 2018-09-26 15:14:58 +02:00
parent a4de56a3d1
commit 0ba0f52cb7

View file

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