]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tevent/testsuite: return after torture_fail()
authorStefan Metzmacher <metze@samba.org>
Thu, 23 Oct 2014 04:54:10 +0000 (06:54 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 11 Jul 2018 21:04:18 +0000 (23:04 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/tevent/testsuite.c

index 63abbf2dc1a66af9f6f7cd3b146671b186e45ccc..08aa7588acee9977b5b92a6421e3c50570dc11cd 100644 (file)
@@ -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;
                }
        }