aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-07-13 11:48:40 -0400
committerGitHub <noreply@github.com>2024-07-13 11:48:40 -0400
commit70cd78cdef69237ba3c511b9e091715ec6d093e5 (patch)
tree3266bbe7cb58027f336da92b670bf2289684d996
parentfa4941a4a553b40c9388ec430375cfe52a4722a1 (diff)
downloadstasis-70cd78cdef69237ba3c511b9e091715ec6d093e5.tar.gz
Free resources only when continue on error is disabled (#11)
* Fix segfault due to premature shutdown/cleanup
-rw-r--r--src/delivery.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/delivery.c b/src/delivery.c
index 7bedef3..0c20550 100644
--- a/src/delivery.c
+++ b/src/delivery.c
@@ -1785,9 +1785,11 @@ void delivery_tests_run(struct Delivery *ctx) {
remove(runner_filename);
popd();
guard_free(cmd);
- tpl_free();
- delivery_free(ctx);
- globals_free();
+ if (!globals.continue_on_error) {
+ tpl_free();
+ delivery_free(ctx);
+ globals_free();
+ }
COE_CHECK_ABORT(1, "Test failure");
}
guard_free(cmd);