shortcut the free operation too

pull/1269/head
Darien Raymond 2018-09-04 09:29:00 +02:00
parent ff0b0b1640
commit cfe7e7843b
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 1 deletions

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()
}