diff --git a/test/regress_main.c b/test/regress_main.c index 937f339d..96b5b7ee 100644 --- a/test/regress_main.c +++ b/test/regress_main.c @@ -264,6 +264,9 @@ basic_test_cleanup(const struct testcase_t *testcase, void *ptr) } } + if (testcase->flags & TT_FORK) + libevent_global_shutdown(); + free(data); return 1; @@ -393,6 +396,8 @@ main(int argc, const char **argv) if (tinytest_main(argc,argv,testgroups)) return 1; + libevent_global_shutdown(); + return 0; }