diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2024-07-13 11:48:40 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-07-13 18:21:10 -0400 |
commit | c8a08f759bb8f47253a3f114643c8c213f0c9109 (patch) | |
tree | 446b9aa4d30688a3192fc0135efc568c43f4b02f | |
parent | eedeecf0296acbf126e7fdbaf00b2d9ea2ccd98e (diff) | |
download | stasis-c8a08f759bb8f47253a3f114643c8c213f0c9109.tar.gz |
Free resources only when continue on error is disabled (#11)
* Fix segfault due to premature shutdown/cleanup
-rw-r--r-- | src/delivery.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/delivery.c b/src/delivery.c index 37845a8..320cd94 100644 --- a/src/delivery.c +++ b/src/delivery.c @@ -1801,9 +1801,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); |