Parcourir la source

shortcut the free operation too

Darien Raymond il y a 7 ans
Parent
commit
cfe7e7843b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      common/buf/buffer.go

+ 1 - 1
common/buf/buffer.go

@@ -28,7 +28,7 @@ func (b *Buffer) Release() {
 	if b == nil || b.v == nil {
 		return
 	}
-	bytespool.Free(b.v)
+	pool.Put(b.v)
 	b.v = nil
 	b.Clear()
 }