mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-20 17:20:08 +01:00
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
This commit is contained in:
parent
f058394a0e
commit
173f694b91
1 changed files with 1 additions and 2 deletions
|
|
@ -1258,8 +1258,7 @@ static void
|
||||||
test_peer_ping (Fixture *f,
|
test_peer_ping (Fixture *f,
|
||||||
gconstpointer context)
|
gconstpointer context)
|
||||||
{
|
{
|
||||||
DBusMessage *m = dbus_message_new_method_call (DBUS_SERVICE_DBUS,
|
DBusMessage *m = NULL;
|
||||||
DBUS_PATH_DBUS, DBUS_INTERFACE_PEER, "Ping");
|
|
||||||
DBusPendingCall *pc = NULL;
|
DBusPendingCall *pc = NULL;
|
||||||
DBusError error = DBUS_ERROR_INIT;
|
DBusError error = DBUS_ERROR_INIT;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue