acd: fix memleak in acd_event()

Only happens with debug logging enabled. So, not a large problem.

Found by Coverity.

Fixes: d9a4b59c18 ('acd: adapt NM code and build options')
This commit is contained in:
Thomas Haller 2019-08-27 18:16:21 +02:00
parent 081b16cdb8
commit 0300c1823a

View file

@ -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) {