]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
test/thread-blocking.c: Fix a memory leak
authorDavid King <dking@redhat.com>
Thu, 20 May 2021 07:58:13 +0000 (08:58 +0100)
committerSimon McVittie <smcv@collabora.com>
Fri, 29 Oct 2021 18:03:13 +0000 (18:03 +0000)
Free name inside the for loop. Found by Coverity.

Bug-RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=1938701

test/thread-blocking.c

index 69395f35d3b2da8721fcb123908e599b3501ec54..0aa54483480c8433a74fffb5aa1a74059e17fd2a 100644 (file)
@@ -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 */