Fix a buffer leak in BinaryMemcacheEncoderTest

BinaryMemcacheEncoderTest.shouldEncodeContent() did not release one of
the three buffers.
This commit is contained in:
Trustin Lee 2015-08-29 11:54:01 +09:00
parent e1bf9d6257
commit e556958abc

View File

@ -136,6 +136,8 @@ public class BinaryMemcacheEncoderTest {
ByteBuf written = channel.readOutbound();
assertThat(written.readableBytes(), is(DEFAULT_HEADER_SIZE));
written.release();
written = channel.readOutbound();
assertThat(written.readableBytes(), is(content1.content().readableBytes()));
assertThat(