summaryrefslogtreecommitdiff
path: root/3/part1.c
diff options
context:
space:
mode:
Diffstat (limited to '3/part1.c')
-rw-r--r--3/part1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/3/part1.c b/3/part1.c
index 19f3bf3..c71ce0a 100644
--- a/3/part1.c
+++ b/3/part1.c
@@ -26,6 +26,8 @@ int count_trees(const char * filename)
pos = (pos + INC_RIGHT) % width;
}
+ fclose(file);
+
return hit;
}