mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-01-22 12:28:03 +00:00
Fix memory leak of field names
This commit is contained in:
parent
6a64cf1b04
commit
7df269219c
6
tile.cc
6
tile.cc
@ -576,8 +576,10 @@ long long write_tile(struct index *start, struct index *end, char *metabase, uns
|
||||
c.meta.push_back(key->n);
|
||||
c.meta.push_back(value->n);
|
||||
|
||||
// Dup to retain after munmap
|
||||
pool(file_keys, strdup(key->s), t);
|
||||
if (!is_pooled(file_keys, key->s, t)) {
|
||||
// Dup to retain after munmap
|
||||
pool(file_keys, strdup(key->s), t);
|
||||
}
|
||||
}
|
||||
|
||||
features.push_back(c);
|
||||
|
Loading…
Reference in New Issue
Block a user