Skip to content

fix(bufiox): fix Flush buffer leak on error and Peek partial return#63

Merged
xiaost merged 1 commit into
mainfrom
fix-bufiox-flush-peek
Feb 23, 2026
Merged

fix(bufiox): fix Flush buffer leak on error and Peek partial return#63
xiaost merged 1 commit into
mainfrom
fix-bufiox-flush-peek

Conversation

@xiaost

@xiaost xiaost commented Feb 23, 2026

Copy link
Copy Markdown
Collaborator
  • DefaultWriter.Flush now frees toFree buffers and cleans up chunks even when WriteTo fails, preventing mcache pool leaks.
  • DefaultReader.Peek now returns whatever data is buffered alongside the error instead of nil.

DefaultWriter.Flush now frees toFree buffers and cleans up chunks even
when WriteTo fails, preventing mcache pool leaks.

DefaultReader.Peek now returns whatever data is buffered alongside the error instead of nil.
@xiaost xiaost merged commit bd0b558 into main Feb 23, 2026
30 checks passed
@xiaost xiaost deleted the fix-bufiox-flush-peek branch February 23, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants