diff options
author | Thomas Haller <thaller@redhat.com> | 2019-08-27 18:16:21 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-08-27 18:19:01 +0200 |
commit | 0300c1823ae4f13d3f0c3df10edc84fc217013c7 (patch) | |
tree | 71efdc3693b9aae7bd119e170f874da58366e764 | |
parent | 081b16cdb8dadddf750065674f44208e5cec9314 (diff) | |
download | NetworkManager-0300c1823ae4f13d3f0c3df10edc84fc217013c7.tar.gz |
acd: fix memleak in acd_event()
Only happens with debug logging enabled. So, not a large problem.
Found by Coverity.
Fixes: d9a4b59c18e3 ('acd: adapt NM code and build options')
-rw-r--r-- | src/devices/nm-acd-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-acd-manager.c b/src/devices/nm-acd-manager.c index 16d3df8ac4..aca7ffd279 100644 --- a/src/devices/nm-acd-manager.c +++ b/src/devices/nm-acd-manager.c @@ -174,7 +174,6 @@ acd_event (GIOChannel *source, GIOCondition condition, gpointer data) AddressInfo *info; gboolean emit_probe_terminated = FALSE; char address_str[INET_ADDRSTRLEN]; - gs_free char *hwaddr_str = NULL; int r; if (n_acd_dispatch (self->acd)) @@ -182,6 +181,7 @@ acd_event (GIOChannel *source, GIOCondition condition, gpointer data) while ( !n_acd_pop_event (self->acd, &event) && event) { + gs_free char *hwaddr_str = NULL; gboolean check_probing_done = FALSE; switch (event->event) { |