fix buffer leak

pull/700/head
Darien Raymond 2017-11-07 16:28:39 +01:00
parent d9ce03d25b
commit 8554a5e0bf
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 0 deletions

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