fix: close fd
This commit is contained in:
parent
e3ccd1d821
commit
d22ab7e610
@ -45,6 +45,7 @@ static char **read_map(const char *path)
|
|||||||
i++;
|
i++;
|
||||||
map[i] = get_next_line(fd);
|
map[i] = get_next_line(fd);
|
||||||
}
|
}
|
||||||
|
close(fd);
|
||||||
return (map);
|
return (map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user