tevent/testsuite: return after torture_fail()
authorStefan Metzmacher <metze@samba.org>
Thu, 23 Oct 2014 04:54:10 +0000 (06:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 May 2018 07:51:45 +0000 (09:51 +0200)
Signed-off-by: Stefan Metzmacher <metze@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;
                }
        }