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
2
tile.cc
2
tile.cc
@ -576,9 +576,11 @@ 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);
|
||||||
|
|
||||||
|
if (!is_pooled(file_keys, key->s, t)) {
|
||||||
// Dup to retain after munmap
|
// Dup to retain after munmap
|
||||||
pool(file_keys, strdup(key->s), t);
|
pool(file_keys, strdup(key->s), t);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
features.push_back(c);
|
features.push_back(c);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user