summaryrefslogtreecommitdiffstats
path: root/dimension/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'dimension/main.c')
-rw-r--r--dimension/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dimension/main.c b/dimension/main.c
index e15180f..76c5ff6 100644
--- a/dimension/main.c
+++ b/dimension/main.c
@@ -100,6 +100,7 @@ main(int argc, char **argv) {
/* Tokenize the input file */
tokens = dmnsn_tokenize(input, input_file);
if (!tokens) {
+ fclose(input_file);
dmnsn_error(DMNSN_SEVERITY_HIGH, "Error tokenizing input file.");
}