mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-04 17:35:42 +02:00
Fix memory leak
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#define _DEFAULT_SOURCE
|
#define _DEFAULT_SOURCE
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -472,6 +473,7 @@ struct reader *begin_reading(char *fname) {
|
|||||||
r->sorty = (1LL << r->zoom) - 1 - r->y;
|
r->sorty = (1LL << r->zoom) - 1 - r->y;
|
||||||
r->data = dir_read_tile(r->pbf_path[0]);
|
r->data = dir_read_tile(r->pbf_path[0]);
|
||||||
path_parts.clear();
|
path_parts.clear();
|
||||||
|
closedir(dir);
|
||||||
} else {
|
} else {
|
||||||
sqlite3 *db;
|
sqlite3 *db;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user