fix: Bytebuf resource leak (#14071)

This commit is contained in:
aofall 2024-04-16 14:24:28 +08:00 committed by GitHub
parent 155c2f2c18
commit ca7151e531
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -461,6 +461,7 @@ public class TripleServerStream extends AbstractStream implements ServerStream {
private void doOnData(ByteBuf data, boolean endStream) { private void doOnData(ByteBuf data, boolean endStream) {
if (deframer == null) { if (deframer == null) {
ReferenceCountUtil.release(data);
return; return;
} }
deframer.deframe(data); deframer.deframe(data);