diff --git a/common/buf/multi_buffer.go b/common/buf/multi_buffer.go index dd6b706ca..e6809cf38 100644 --- a/common/buf/multi_buffer.go +++ b/common/buf/multi_buffer.go @@ -70,7 +70,8 @@ func (mb MultiBuffer) IsEmpty() bool { } func (mb MultiBuffer) Release() { - for _, b := range mb { + for i, b := range mb { b.Release() + mb[i] = nil } }