diff options
author | Thomas Haller <thaller@redhat.com> | 2014-04-15 19:17:22 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-04-24 21:18:08 +0200 |
commit | f19e79cd7a739a20940597c1e373083e8837f411 (patch) | |
tree | 44a448b99920b5049f56cc7da62177ff890addfb /src | |
parent | 9305c5bbf7fcfb9f58c59bcb3621cbe1fff964bc (diff) | |
download | NetworkManager-f19e79cd7a739a20940597c1e373083e8837f411.tar.gz |
core: fix potential crash in nm-dhcp-client
Error found by coverity.
https://bugzilla.gnome.org/show_bug.cgi?id=728320
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/dhcp-manager/nm-dhcp-dhclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcp-manager/nm-dhcp-dhclient.c b/src/dhcp-manager/nm-dhcp-dhclient.c index 9874074fb1..4232ee0cce 100644 --- a/src/dhcp-manager/nm-dhcp-dhclient.c +++ b/src/dhcp-manager/nm-dhcp-dhclient.c @@ -559,13 +559,13 @@ get_duid (NMDHCPClient *client) if (leasefile) { nm_log_dbg (LOGD_DHCP, "Looking for DHCPv6 DUID in '%s'.", leasefile); duid = nm_dhcp_dhclient_read_duid (leasefile, &error); - g_free (leasefile); if (error) { nm_log_warn (LOGD_DHCP, "Failed to read leasefile '%s': (%d) %s", leasefile, error->code, error->message); g_clear_error (&error); } + g_free (leasefile); } if (!duid && priv->def_leasefile) { |