shortcut the free operation too

This commit is contained in:
Darien Raymond
2018-09-04 09:29:00 +02:00
parent ff0b0b1640
commit cfe7e7843b
+1 -1
View File
@@ -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()
}