From ac99ca05eeabc0dd532c8ee8aafd6558a1b8b906 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 20 Apr 2015 21:47:21 +0200 Subject: [PATCH] dbus_test_tool_spam: Fix 'variable payload going out of scope leaks the storage it points to' (CID 54759) Coverity-ID: 54759: Resource leak (RESOURCE_LEAK) --- tools/dbus-spam.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/dbus-spam.c b/tools/dbus-spam.c index afb34da..c78d8ea 100644 --- a/tools/dbus-spam.c +++ b/tools/dbus-spam.c @@ -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; } -- 1.8.4.5