From 99670c37149075c0a24f286061bafb6cf616b9d6 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 3 Oct 2007 15:07:46 +0000 Subject: [PATCH] proper cleanup on error --- src/openac/openac.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openac/openac.c b/src/openac/openac.c index 2c93487e8..cde6ba3be 100755 --- a/src/openac/openac.c +++ b/src/openac/openac.c @@ -293,7 +293,8 @@ int main(int argc, char **argv) } if (!optionsfrom(path, &argc, &argv, optind)) { - exit(1); + status = 1; + goto end; } } continue; @@ -428,7 +429,8 @@ int main(int argc, char **argv) else { DBG1(" integrity test failed"); - exit(3); + status = 3; + goto end; } #endif /* INTEGRITY_TEST */