From 7dc6b64d98bf2f9e1f6da4549a0fae9736450b7c Mon Sep 17 00:00:00 2001 From: David King Date: Thu, 20 May 2021 08:58:13 +0100 Subject: [PATCH] test/thread-blocking.c: Fix a memory leak Free name inside the for loop. Found by Coverity. Bug-RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=1938701 --- test/thread-blocking.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/thread-blocking.c b/test/thread-blocking.c index 69395f35d..0aa544834 100644 --- a/test/thread-blocking.c +++ b/test/thread-blocking.c @@ -233,6 +233,8 @@ test_threads (Fixture *f, f->client_caller_threads[i] = g_thread_new (name, client_caller_thread_cb, f); + + g_free (name); } /* Wait for all caller threads to exit */ -- 2.47.3