diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-01-19 17:28:58 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-01-21 13:28:08 +0000 |
commit | c894f62f2c33cd984805ec069ad3ca8684cbafe1 (patch) | |
tree | 5e94c0fbebee0786ce2733948270a2c499d0b163 | |
parent | edaa6fe253782dda959d78396b43e9fd71ea77e3 (diff) | |
download | dbus-c894f62f2c33cd984805ec069ad3ca8684cbafe1.tar.gz |
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>
-rw-r--r-- | test/test-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-utils.c b/test/test-utils.c index eda20cd5..67e207c5 100644 --- a/test/test-utils.c +++ b/test/test-utils.c @@ -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; |