]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus_test_tool_spam: Fix 'variable payload going out of scope leaks the storage it...
authorRalf Habacker <ralf.habacker@freenet.de>
Mon, 20 Apr 2015 19:47:21 +0000 (21:47 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Fri, 1 May 2015 21:04:59 +0000 (23:04 +0200)
Reported by Coverity: CID 54759: Resource leak (RESOURCE_LEAK)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90021
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
tools/dbus-spam.c

index afb34da0b65cf42c6d3255e2e71623a42316f6b8..c78d8ea6748f900f0edb3dce1aba0f45624b878b 100644 (file)
@@ -368,6 +368,7 @@ dbus_test_tool_spam (int argc, char **argv)
                        error.name, error.message);
               dbus_error_free (&error);
               dbus_free (random_sizes);
+              dbus_free (payload_buf);
               return 1;
             }