mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
gthreadedresolver: Fix leak on error path
Signed-off-by: Philip Withnall <pwithnall@gnome.org> Fixes: #3236
This commit is contained in:
parent
5f345a2653
commit
8da4fc17b9
@ -1592,6 +1592,7 @@ threaded_resolver_worker_cb (gpointer task_data,
|
||||
}
|
||||
|
||||
g_clear_pointer (&addresses, g_resolver_free_addresses);
|
||||
g_clear_error (&local_error);
|
||||
}
|
||||
break;
|
||||
case LOOKUP_BY_ADDRESS:
|
||||
@ -1613,6 +1614,7 @@ threaded_resolver_worker_cb (gpointer task_data,
|
||||
}
|
||||
|
||||
g_clear_pointer (&name, g_free);
|
||||
g_clear_error (&local_error);
|
||||
}
|
||||
break;
|
||||
case LOOKUP_RECORDS:
|
||||
@ -1635,6 +1637,7 @@ threaded_resolver_worker_cb (gpointer task_data,
|
||||
}
|
||||
|
||||
g_clear_pointer (&records, free_records);
|
||||
g_clear_error (&local_error);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user