Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit f89479f

Browse files
authored
Merge pull request #257 from ash2k/release-writer
Release writer to enable GC
2 parents 885a41a + b858ec2 commit f89479f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pool.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func (cfg *frozenConfig) BorrowStream(writer io.Writer) *Stream {
2323
}
2424

2525
func (cfg *frozenConfig) ReturnStream(stream *Stream) {
26+
stream.out = nil
2627
stream.Error = nil
2728
stream.Attachment = nil
2829
cfg.streamPool.Put(stream)

0 commit comments

Comments
 (0)