Remember to close the input file after CSV parsing too

This commit is contained in:
Eric Fischer 2018-02-06 16:23:44 -08:00
parent 2e5b597ca1
commit 8726366a4c

View File

@ -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;