From 8095e52e5c673da12de1e3ca1f01e7d8f8429f02 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 12 Jul 2018 13:32:34 +0100 Subject: [PATCH] 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 --- test/marshal.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.3