mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 09:55:41 +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(key->n);
|
||||||
c.meta.push_back(value->n);
|
c.meta.push_back(value->n);
|
||||||
|
|
||||||
// Dup to retain after munmap
|
if (!is_pooled(file_keys, key->s, t)) {
|
||||||
pool(file_keys, strdup(key->s), t);
|
// Dup to retain after munmap
|
||||||
|
pool(file_keys, strdup(key->s), t);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
features.push_back(c);
|
features.push_back(c);
|
||||||
|
|||||||
Reference in New Issue
Block a user