summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
Diffstat (limited to 'txr.c')
-rw-r--r--txr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/txr.c b/txr.c
index d9c2b166..def35cc9 100644
--- a/txr.c
+++ b/txr.c
@@ -831,6 +831,8 @@ int txr_main(int argc, char **argv)
parse_once(parse_stream, spec_file_str, &parser);
gc_state(gc);
+ close_stream(parse_stream, nil);
+
if (parser.errors)
return EXIT_FAILURE;
@@ -861,6 +863,8 @@ int txr_main(int argc, char **argv)
{
val result = read_eval_stream(parse_stream, std_error, t);
+ close_stream(parse_stream, nil);
+
if (!enter_repl)
return result ? 0 : EXIT_FAILURE;
}