mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
Fix memory leak of field names
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user