mirror of https://github.com/v2ray/v2ray-core
fix buffer leak
parent
d9ce03d25b
commit
8554a5e0bf
|
@ -95,6 +95,7 @@ func (mb *MultiBuffer) Read(b []byte) (int, error) {
|
|||
b = b[nBytes:]
|
||||
if bb.IsEmpty() {
|
||||
bb.Release()
|
||||
(*mb)[i] = nil
|
||||
} else {
|
||||
endIndex = i
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue