Merge branch 'wip/test-leaks' into 'master'

Fix straightforward memory leaks in tests

See merge request GNOME/glib!1908
This commit is contained in:
Sebastian Dröge 2021-01-30 12:06:48 +00:00
commit 96cf1b79c5
2 changed files with 2 additions and 0 deletions

View File

@ -342,6 +342,7 @@ writtenv_read_write_async_cb (GOutputStream *ostream,
conn = data->conn;
g_free (data->data);
g_free (data->vectors);
g_free (data);
res = g_output_stream_writev_all_finish (ostream, result, &bytes_written, &error);

View File

@ -295,6 +295,7 @@ test_thread_sort (gboolean sort)
g_assert (g_thread_pool_get_max_threads (pool) == max_threads);
g_assert (g_thread_pool_get_num_threads (pool) == g_thread_pool_get_max_threads (pool));
g_thread_pool_free (pool, TRUE, TRUE);
}
static void