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>
This commit is contained in:
Ralf Habacker 2015-04-20 21:47:21 +02:00
parent 580b44f72d
commit 1d2976e4bd

View 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;
}