diff --git a/src/dhcp/nm-dhcp-dhclient.c b/src/dhcp/nm-dhcp-dhclient.c index 5230ed4add..1c0b4bb3ac 100644 --- a/src/dhcp/nm-dhcp-dhclient.c +++ b/src/dhcp/nm-dhcp-dhclient.c @@ -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; } }