1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-01 15:05:35 -05:00

fix buffer leak

This commit is contained in:
Darien Raymond
2017-11-07 16:28:39 +01:00
parent d9ce03d25b
commit 8554a5e0bf

View File

@@ -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