summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2015-04-20 21:47:21 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2015-05-01 23:04:59 +0200
commit1d2976e4bd655f082e40c525c5fe5f1dd7dc0138 (patch)
treef944550710f9b4a488c4ee3a1bac54c57bb087f5
parent580b44f72d1e57a9c91950757f01b19521552f75 (diff)
dbus_test_tool_spam: Fix 'variable payload going out of scope leaks the storage it points to' (CID 54759)
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>
-rw-r--r--tools/dbus-spam.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/dbus-spam.c b/tools/dbus-spam.c
index afb34da0..c78d8ea6 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;
}