Fix memory leak when closing out tiles that had all features clipped away

This commit is contained in:
Eric Fischer
2015-07-29 16:45:41 -07:00
parent 39cd5e210e
commit 10e35c4300
2 changed files with 19 additions and 0 deletions
+6
View File
@@ -780,6 +780,12 @@ long long write_tile(char **geoms, char *metabase, char *stringpool, unsigned *f
return count;
}
} else {
int i;
for (i = 0; i < nlayers; i++) {
pool_free(&keys1[i]);
pool_free(&values1[i]);
}
return count;
}
}