Correct release buffers in RedisEncoderTest

Motivation:

RedisEncoderTest did not release all buffers correctly which could lead to leaks.

Modifications:

Call ByteBuf.release() after buffer is read.

Result:

No more leaks in RedisEncoderTest.
This commit is contained in:
Norman Maurer 2016-11-24 13:52:28 +01:00 committed by Norman Maurer
parent f70757da2a
commit d1c8b099a5

View File

@ -175,6 +175,7 @@ public class RedisEncoderTest {
ByteBuf read;
while ((read = channel.readOutbound()) != null) {
buf.writeBytes(read);
read.release();
}
return buf;
}