[pool] Don't clear unused memory

This commit is contained in:
Behdad Esfahbod 2023-06-26 17:52:37 -06:00
parent 6129702eb8
commit e4b2d9c3f3

View file

@ -58,7 +58,7 @@ struct hb_pool_t
if (unlikely (!next))
{
if (unlikely (!chunks.alloc (chunks.length + 1))) return nullptr;
chunk_t *chunk = (chunk_t *) hb_calloc (1, sizeof (chunk_t));
chunk_t *chunk = (chunk_t *) hb_malloc (sizeof (chunk_t));
if (unlikely (!chunk)) return nullptr;
chunks.push (chunk);
next = chunk->thread ();