From: Simon McVittie Date: Thu, 12 Jul 2018 12:32:34 +0000 (+0100) Subject: test/marshal: Don't leak a message and its marshalled buffer X-Git-Tag: dbus-1.13.6~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8095e52e5c673da12de1e3ca1f01e7d8f8429f02;p=thirdparty%2Fdbus.git test/marshal: Don't leak a message and its marshalled buffer Signed-off-by: Simon McVittie Reviewed-by: Philip Withnall Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107194 --- diff --git a/test/marshal.c b/test/marshal.c index f10bb1c25..a1e0589d6 100644 --- a/test/marshal.c +++ b/test/marshal.c @@ -199,6 +199,9 @@ test_endian (Fixture *f, /* the second "u" in the signature replaced a padding byte, so only * the length of the body changed */ g_assert_cmpint (len, ==, BLOB_LENGTH + 4); + + dbus_clear_message (&m); + dbus_free (output); } static void