Fix a buffer leak in BinaryMemcacheEncoderTest
BinaryMemcacheEncoderTest.shouldEncodeContent() did not release one of the three buffers.
This commit is contained in:
parent
9c172e0f45
commit
52bec9726f
@ -136,6 +136,8 @@ public class BinaryMemcacheEncoderTest {
|
|||||||
|
|
||||||
ByteBuf written = channel.readOutbound();
|
ByteBuf written = channel.readOutbound();
|
||||||
assertThat(written.readableBytes(), is(DEFAULT_HEADER_SIZE));
|
assertThat(written.readableBytes(), is(DEFAULT_HEADER_SIZE));
|
||||||
|
written.release();
|
||||||
|
|
||||||
written = channel.readOutbound();
|
written = channel.readOutbound();
|
||||||
assertThat(written.readableBytes(), is(content1.content().readableBytes()));
|
assertThat(written.readableBytes(), is(content1.content().readableBytes()));
|
||||||
assertThat(
|
assertThat(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user