Преглед изворни кода

shortcut the free operation too

Darien Raymond пре 7 година
родитељ
комит
cfe7e7843b
1 измењених фајлова са 1 додато и 1 уклоњено
  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()
 }