summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-05-25 15:58:09 +0200
committerThomas Haller <thaller@redhat.com>2018-05-26 20:11:04 +0200
commitfd9f1b7cdd86286b2239e4f771e759c8a5b82aad (patch)
treee82a031798184105de9ec787f76513198e7d3016
parente1bbc2e1556e8211054f14a5da4f43cded83a3e1 (diff)
downloadNetworkManager-fd9f1b7cdd86286b2239e4f771e759c8a5b82aad.tar.gz
dhcp: fix leaking error in dhclient_start()
Fixes: 1b1b4bd91c29425c25e8e979cd77b7a67deb9bf5
-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 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;
}
}