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:
parent
f70757da2a
commit
d1c8b099a5
@ -175,6 +175,7 @@ public class RedisEncoderTest {
|
||||
ByteBuf read;
|
||||
while ((read = channel.readOutbound()) != null) {
|
||||
buf.writeBytes(read);
|
||||
read.release();
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user