mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 22:01:47 +00:00
Fixed unbalanced ref/deref in PipeReader.start() and StaticPipeWriter.start() when the underlying reader/writer fails to start. Previously, ref() was called at the start of these functions but was not paired with deref() in error paths, causing the objects to never be freed. This fix ensures that when start() fails, the reference count is properly decremented to allow the object to be cleaned up. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>