mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-07-24 18:54:24 -04:00
shortcut the free operation too
This commit is contained in:
parent
ff0b0b1640
commit
cfe7e7843b
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user