diff --git a/src/util/pool/index.js b/src/util/pool/index.js index ea4feaddc..3f2337b7e 100644 --- a/src/util/pool/index.js +++ b/src/util/pool/index.js @@ -34,7 +34,7 @@ function pool(alloc, slice, size) { var slab = null; var offset = SIZE; return function pool_alloc(size) { - if (size > MAX) + if (size > MAX || size === 0) return alloc(size); if (offset + size > SIZE) { slab = alloc(SIZE);