Fix resource leak in LengthFieldBasedFrameDecoderTest
This commit is contained in:
parent
ac6c3b85f2
commit
fe59ab1b9c
|
@ -44,6 +44,7 @@ public class LengthFieldBasedFrameDecoderTest {
|
||||||
ch.writeInbound(Unpooled.wrappedBuffer(new byte[] { 0, 0, 0, 1, 'A' }));
|
ch.writeInbound(Unpooled.wrappedBuffer(new byte[] { 0, 0, 0, 1, 'A' }));
|
||||||
ByteBuf buf = (ByteBuf) ch.readInbound();
|
ByteBuf buf = (ByteBuf) ch.readInbound();
|
||||||
assertEquals("A", buf.toString(CharsetUtil.ISO_8859_1));
|
assertEquals("A", buf.toString(CharsetUtil.ISO_8859_1));
|
||||||
|
buf.release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user