From e4b2d9c3f33be4e216d5ab6893e9899907f20680 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 26 Jun 2023 17:52:37 -0600 Subject: [PATCH] [pool] Don't clear unused memory --- src/hb-pool.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-pool.hh b/src/hb-pool.hh index d6eb778f5..fcf10666b 100644 --- a/src/hb-pool.hh +++ b/src/hb-pool.hh @@ -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 ();