mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 14:38:10 +02:00
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:
parent
edaa6fe253
commit
c894f62f2c
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue