aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index a3b0f731..64d97251 100644
--- a/main.c
+++ b/main.c
@@ -704,6 +704,10 @@ out:
if (do_tidy_mem)
release_all_vars();
+
+ /* keep valgrind happier */
+ if (extra_stack)
+ free(extra_stack);
exit(exit_val); /* more portable */
return exit_val; /* to suppress warnings */