mirror of https://github.com/v2ray/v2ray-core
shortcut the free operation too
parent
ff0b0b1640
commit
cfe7e7843b
|
@ -28,7 +28,7 @@ func (b *Buffer) Release() {
|
||||||
if b == nil || b.v == nil {
|
if b == nil || b.v == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
bytespool.Free(b.v)
|
pool.Put(b.v)
|
||||||
b.v = nil
|
b.v = nil
|
||||||
b.Clear()
|
b.Clear()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue