dhcp: fix leaking error in dhclient_start()

Fixes: 1b1b4bd91c
This commit is contained in:
Thomas Haller 2018-05-25 15:58:09 +02:00
parent e1bbc2e155
commit fd9f1b7cdd

View file

@ -387,6 +387,7 @@ dhclient_start (NMDhcpClient *client,
if (!success) {
_LOGW ("failed to save DUID to %s: %s", priv->lease_file, error->message);
g_free (pid_file);
g_clear_error (&error);
return FALSE;
}
}