From 3b57a923fd9eb53630fdaa8ff9dc88a306b976c8 Mon Sep 17 00:00:00 2001 From: H1JK Date: Fri, 1 Dec 2023 23:13:14 +0800 Subject: [PATCH] fix: Pool panic when putting small buffer --- common/pool/alloc.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/pool/alloc.go b/common/pool/alloc.go index 0a629403..80927a2c 100644 --- a/common/pool/alloc.go +++ b/common/pool/alloc.go @@ -96,6 +96,9 @@ func (alloc *Allocator) Put(buf []byte) error { if cap(buf) != 1<