1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-03-21 21:55:23 -04: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

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