Fix buffer leaks in Bzip2DecoderTest
This commit is contained in:
parent
31211487e9
commit
56d732d439
@ -229,9 +229,11 @@ public class Bzip2DecoderTest {
|
||||
ByteBuf msg;
|
||||
while ((msg = channel.readInbound()) != null) {
|
||||
uncompressed.writeBytes(msg);
|
||||
msg.release();
|
||||
}
|
||||
final byte[] result = new byte[uncompressed.readableBytes()];
|
||||
uncompressed.readBytes(result);
|
||||
uncompressed.release();
|
||||
|
||||
assertArrayEquals(BYTES_LARGE, result);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user