Fix memory leak of field names

This commit is contained in:
Eric Fischer 2014-10-01 10:20:04 -07:00
parent 6a64cf1b04
commit 7df269219c

View File

@ -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(value->n);
if (!is_pooled(file_keys, key->s, t)) {
// Dup to retain after munmap
pool(file_keys, strdup(key->s), t);
}
}
features.push_back(c);
}