diff --git a/CHANGELOG.md b/CHANGELOG.md index b54da8e..c01b768 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.16.17 + +* Clean up JSON parsing at the end of each FeatureCollection + to avoid running out of memory + ## 1.16.16 * Add tile-join options to include or exclude specific layers diff --git a/geojson.cpp b/geojson.cpp index 223ff93..ffbcebe 100644 --- a/geojson.cpp +++ b/geojson.cpp @@ -604,6 +604,7 @@ void parse_json(json_pull *jp, const char *reading, volatile long long *layer_se if (strcmp(type->string, "Feature") != 0) { if (strcmp(type->string, "FeatureCollection") == 0) { check_crs(j, reading); + json_free(j); } continue; diff --git a/version.hpp b/version.hpp index ec081f1..55d66ba 100644 --- a/version.hpp +++ b/version.hpp @@ -1 +1 @@ -#define VERSION "tippecanoe v1.16.16\n" +#define VERSION "tippecanoe v1.16.17\n"