This is an automated email from the ASF dual-hosted git repository.
icodening pushed a commit to branch 3.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.2 by this push:
new ca7151e531 fix: Bytebuf resource leak (#14071)
ca7151e531 is described below
commit ca7151e53166fc69079fefff074ee369aa29f134
Author: aofall <[email protected]>
AuthorDate: Tue Apr 16 14:24:28 2024 +0800
fix: Bytebuf resource leak (#14071)
---
.../org/apache/dubbo/rpc/protocol/tri/stream/TripleServerStream.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/stream/TripleServerStream.java
b/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/stream/TripleServerStream.java
index 0aaca48491..e093e748c5 100644
---
a/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/stream/TripleServerStream.java
+++
b/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/stream/TripleServerStream.java
@@ -461,6 +461,7 @@ public class TripleServerStream extends AbstractStream
implements ServerStream {
private void doOnData(ByteBuf data, boolean endStream) {
if (deframer == null) {
+ ReferenceCountUtil.release(data);
return;
}
deframer.deframe(data);