diff --git a/common/crypto/io.go b/common/crypto/io.go index 60e593e52..cc595f17e 100644 --- a/common/crypto/io.go +++ b/common/crypto/io.go @@ -51,6 +51,8 @@ func (w *CryptionWriter) Write(data []byte) (int, error) { } func (w *CryptionWriter) WriteMultiBuffer(mb buf.MultiBuffer) error { + defer mb.Release() + bs := mb.ToNetBuffers() for _, b := range bs { w.stream.XORKeyStream(b, b)