From: Stefan Metzmacher Date: Thu, 23 Oct 2014 04:54:10 +0000 (+0200) Subject: tevent/testsuite: return after torture_fail() X-Git-Tag: tevent-0.9.37~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eccb2dd1c24073bb7353c1ec9280347d6259331;p=thirdparty%2Fsamba.git tevent/testsuite: return after torture_fail() Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/lib/tevent/testsuite.c b/lib/tevent/testsuite.c index 63abbf2dc1a..08aa7588ace 100644 --- a/lib/tevent/testsuite.c +++ b/lib/tevent/testsuite.c @@ -191,8 +191,9 @@ static bool test_event_context(struct torture_context *test, while (!finished) { errno = 0; if (tevent_loop_once(ev_ctx) == -1) { - talloc_free(ev_ctx); + TALLOC_FREE(ev_ctx); torture_fail(test, talloc_asprintf(test, "Failed event loop %s\n", strerror(errno))); + return false; } }