From 8554a5e0bf8bd663984576fdf7e5b23a5159d1a7 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 7 Nov 2017 16:28:39 +0100 Subject: [PATCH] fix buffer leak --- common/buf/multi_buffer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/buf/multi_buffer.go b/common/buf/multi_buffer.go index 12c995a2..ca5d5d45 100644 --- a/common/buf/multi_buffer.go +++ b/common/buf/multi_buffer.go @@ -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