diff --git a/app/proxyman/mux/reader.go b/app/proxyman/mux/reader.go index 5b01a4906..298eec058 100644 --- a/app/proxyman/mux/reader.go +++ b/app/proxyman/mux/reader.go @@ -104,6 +104,7 @@ func (r *StreamReader) Read() (buf.MultiBuffer, error) { if err := b.AppendSupplier(func(bb []byte) (int, error) { return r.reader.Read(bb[:readLen]) }); err != nil { + b.Release() mb.Release() return nil, err }