1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-24 08:25:23 +00:00

shortcut the free operation too

This commit is contained in:
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

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