diff options
author | Simon McVittie <smcv@collabora.com> | 2017-11-21 10:50:37 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2017-11-24 12:18:45 +0000 |
commit | 173f694b91d0bc3eb4eeffcd6154b78b275f7c88 (patch) | |
tree | 4b522d9a33dd7ad3ac51eda55abda38a3dd55f68 | |
parent | f058394a0e29c9f04782833c6f2d3617b11906a9 (diff) |
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 <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103600
-rw-r--r-- | test/dbus-daemon.c | 3 |
1 files changed, 1 insertions, 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; |