[glib/wip/test-leaks: 2/2] threadpool test: Don't leak the thread pool
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/test-leaks: 2/2] threadpool test: Don't leak the thread pool
- Date: Fri, 29 Jan 2021 20:26:53 +0000 (UTC)
commit d499c531585c00e99e1bc1c60447b68fcafc2752
Author: Simon McVittie <smcv collabora com>
Date: Fri Jan 29 20:22:17 2021 +0000
threadpool test: Don't leak the thread pool
Detected by AddressSanitizer.
Signed-off-by: Simon McVittie <smcv collabora com>
tests/threadpool-test.c | 1 +
1 file changed, 1 insertion(+)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]