mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-23 18:40:17 +00:00
Remember to close the input file after CSV parsing too
This commit is contained in:
parent
2e5b597ca1
commit
8726366a4c
5
main.cpp
5
main.cpp
@ -1343,6 +1343,11 @@ int read_input(std::vector<source> &sources, char *fname, int maxzoom, int minzo
|
||||
|
||||
parse_geocsv(sst, sources[source].file, layer, sources[layer].layer);
|
||||
|
||||
if (close(fd) != 0) {
|
||||
perror("close");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
overall_offset = layer_seq[0];
|
||||
checkdisk(&readers);
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user