diff options
author | Simon McVittie <smcv@collabora.com> | 2021-01-29 20:22:17 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2021-01-29 20:26:05 +0000 |
commit | d499c531585c00e99e1bc1c60447b68fcafc2752 (patch) | |
tree | debe44420010d787d004129284a6bd013cd6f76c | |
parent | 5b476d0d9cadf44f4031c38a3165173b1f01ed28 (diff) | |
download | glib-wip/test-leaks.tar.gz |
threadpool test: Don't leak the thread poolwip/test-leaks
Detected by AddressSanitizer.
Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r-- | tests/threadpool-test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/threadpool-test.c b/tests/threadpool-test.c index b2cb4d99e..dfd138212 100644 --- a/tests/threadpool-test.c +++ b/tests/threadpool-test.c @@ -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 |