dhcp: dhclient: fix memory leak

Fixes: c263f5355c
(cherry picked from commit 0ba0f52cb7)
This commit is contained in:
Beniamino Galvani 2018-09-26 15:14:58 +02:00 committed by Thomas Haller
parent 506f781488
commit 147081bd72

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