diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2015-04-20 21:40:14 +0200 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2015-05-01 23:04:52 +0200 |
commit | 580b44f72d1e57a9c91950757f01b19521552f75 (patch) | |
tree | d1c79a0b7c969e93636621956464de3a39d8483b /tools | |
parent | 1ba6c3956bc49949ede3daf8eaa29463736c667f (diff) | |
download | dbus-580b44f72d1e57a9c91950757f01b19521552f75.tar.gz dbus-580b44f72d1e57a9c91950757f01b19521552f75.tar.bz2 dbus-580b44f72d1e57a9c91950757f01b19521552f75.zip |
dbus_test_tool_spam: Fix 'variable random_sizes going out of scope leaks the storage it points to' (CID 54761)
Reported by Coverity: CID 54761: Resource leak (RESOURCE_LEAK)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90021
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dbus-spam.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/dbus-spam.c b/tools/dbus-spam.c index e708ea2d..afb34da0 100644 --- a/tools/dbus-spam.c +++ b/tools/dbus-spam.c @@ -367,6 +367,7 @@ dbus_test_tool_spam (int argc, char **argv) fprintf (stderr, "Failed to connect to bus: %s: %s\n", error.name, error.message); dbus_error_free (&error); + dbus_free (random_sizes); return 1; } @@ -512,6 +513,7 @@ dbus_test_tool_spam (int argc, char **argv) VERBOSE (stderr, "Done\n"); dbus_free (payload_buf); + dbus_free (random_sizes); if (template != NULL) dbus_message_unref (template); |