From 173f694b91d0bc3eb4eeffcd6154b78b275f7c88 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 21 Nov 2017 10:50:37 +0000 Subject: [PATCH] test_peer_ping: Don't leak one method call per invocation Previously, we allocated m both during initialization, and after deciding not to skip this test. Signed-off-by: Simon McVittie Reviewed-by: Philip Withnall Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103600 --- test/dbus-daemon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/dbus-daemon.c b/test/dbus-daemon.c index f9d8f9233..3d5c147f9 100644 --- a/test/dbus-daemon.c +++ b/test/dbus-daemon.c @@ -1258,8 +1258,7 @@ static void test_peer_ping (Fixture *f, gconstpointer context) { - DBusMessage *m = dbus_message_new_method_call (DBUS_SERVICE_DBUS, - DBUS_PATH_DBUS, DBUS_INTERFACE_PEER, "Ping"); + DBusMessage *m = NULL; DBusPendingCall *pc = NULL; DBusError error = DBUS_ERROR_INIT; -- 2.47.3