Skip to content

Fix heap ByteBuf release in NettyReadBuffer.useFastHeapBuffer#12681

Merged
yawkat merged 1 commit into
micronaut-projects:5.0.xfrom
shblue21:fix/12680-netty-readbuffer-release
May 20, 2026
Merged

Fix heap ByteBuf release in NettyReadBuffer.useFastHeapBuffer#12681
yawkat merged 1 commit into
micronaut-projects:5.0.xfrom
shblue21:fix/12680-netty-readbuffer-release

Conversation

@shblue21

Copy link
Copy Markdown
Contributor

Fixes #12680

NettyReadBuffer.useFastHeapBuffer consumes heap-backed buffers, so it should also release the underlying ByteBuf once the callback has run.

Added a small regression test for that path.

Verified with:

  • ./gradlew :micronaut-buffer-netty:test
  • ./gradlew :micronaut-buffer-netty:check

@graemerocher graemerocher requested a review from yawkat May 20, 2026 08:30
@yawkat yawkat added the type: bug Something isn't working label May 20, 2026
@graemerocher graemerocher moved this from Backlog to In review in 5.0.1 Release May 20, 2026
@yawkat yawkat merged commit b1c38cd into micronaut-projects:5.0.x May 20, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in 5.0.1 Release May 20, 2026
@yawkat

yawkat commented May 20, 2026

Copy link
Copy Markdown
Member

Thanks!

@shblue21 shblue21 deleted the fix/12680-netty-readbuffer-release branch May 20, 2026 09:50
altro3 pushed a commit to altro3/micronaut-core that referenced this pull request Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants