summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 9e8fdbf..2734aaf 100644
--- a/main.c
+++ b/main.c
@@ -60,7 +60,9 @@ int main(int argc, char *argv[]) {
ret = eval_cmdline(cmdline);
}
- free_cmdline(cmdline);
+ if (free_cmdline(cmdline) != 0 && ret == EXIT_SUCCESS) {
+ ret = EXIT_FAILURE;
+ }
done:
return ret;