diff --git a/common/buf/buffer.go b/common/buf/buffer.go index c15e3f968..f89b334ea 100644 --- a/common/buf/buffer.go +++ b/common/buf/buffer.go @@ -208,6 +208,7 @@ func NewBytes(size uint32) []byte { func FreeBytes(b []byte) { size := cap(b) + b = b[0:cap(b)] switch { case size >= 128*1024: pool128k.Put(b)