diff --git a/map/parsing.c b/map/parsing.c index 8fa4962..7784bb0 100644 --- a/map/parsing.c +++ b/map/parsing.c @@ -45,6 +45,7 @@ static char **read_map(const char *path) i++; map[i] = get_next_line(fd); } + close(fd); return (map); }