diff options
| author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2024-07-13 11:48:40 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-13 11:48:40 -0400 | 
| commit | 70cd78cdef69237ba3c511b9e091715ec6d093e5 (patch) | |
| tree | 3266bbe7cb58027f336da92b670bf2289684d996 /src | |
| parent | fa4941a4a553b40c9388ec430375cfe52a4722a1 (diff) | |
| download | stasis-70cd78cdef69237ba3c511b9e091715ec6d093e5.tar.gz | |
Free resources only when continue on error is disabled (#11)
* Fix segfault due to premature shutdown/cleanup
Diffstat (limited to 'src')
| -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 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); | 
