]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
test/marshal: Don't leak a message and its marshalled buffer
authorSimon McVittie <smcv@collabora.com>
Thu, 12 Jul 2018 12:32:34 +0000 (13:32 +0100)
committerSimon McVittie <smcv@collabora.com>
Thu, 2 Aug 2018 16:16:14 +0000 (17:16 +0100)
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107194

test/marshal.c

index f10bb1c25830b22a9cbd10fb1a270c17fa4ef832..a1e0589d676574c88507bc982632bb70520e75b9 100644 (file)
@@ -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