Amend HBASE-27180 Fix multiple possible buffer leaks (#4597)
spotless:apply fix Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
parent
7dfed53819
commit
ad82104233
|
@ -162,11 +162,11 @@ public class TestFanOutOneBlockAsyncDFSOutputHang extends AsyncFSTestBase {
|
|||
|
||||
@Override
|
||||
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
|
||||
if (!(msg instanceof ByteBuf)) {
|
||||
ctx.fireChannelRead(msg);
|
||||
} else {
|
||||
((ByteBuf) msg).release();
|
||||
}
|
||||
if (!(msg instanceof ByteBuf)) {
|
||||
ctx.fireChannelRead(msg);
|
||||
} else {
|
||||
((ByteBuf) msg).release();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue