mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-13 17:30:33 +01:00
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:
parent
081b16cdb8
commit
0300c1823a
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue