test_server_setup: on OOM while setting up watch/timeout, don't leak sd

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33128
Reviwed-by: Colin Walters <walters@verbum.org>
This commit is contained in:
Simon McVittie 2011-01-19 17:28:58 +00:00
parent edaa6fe253
commit c894f62f2c

View file

@ -304,7 +304,7 @@ test_server_setup (DBusLoop *loop,
sd,
serverdata_free))
{
return FALSE;
goto nomem;
}
if (!dbus_server_set_timeout_functions (server,
@ -313,7 +313,7 @@ test_server_setup (DBusLoop *loop,
NULL,
sd, serverdata_free))
{
return FALSE;
goto nomem;
}
return TRUE;