From: David King Date: Thu, 20 May 2021 07:58:13 +0000 (+0100) Subject: test/thread-blocking.c: Fix a memory leak X-Git-Tag: dbus-1.13.20~37^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7dc6b64d98bf2f9e1f6da4549a0fae9736450b7c;p=thirdparty%2Fdbus.git 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 --- 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 */