Merge branch '3236-resolver-error-leak' into 'main'

gthreadedresolver: Fix leak on error path

Closes #3236

See merge request GNOME/glib!3862
This commit is contained in:
Philip Withnall 2024-01-30 14:31:32 +00:00
commit 3b7df5e25d

View File

@ -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: