Fix buffer leak in Bzip2EncoderTest
This commit is contained in:
parent
aa66f556e5
commit
53141b04a8
@ -54,7 +54,10 @@ public class Bzip2EncoderTest {
|
||||
assertEquals(9 + '0', out.readByte());
|
||||
|
||||
out.release();
|
||||
channel.finish();
|
||||
assertTrue(channel.finish());
|
||||
out = channel.readOutbound();
|
||||
out.release();
|
||||
assertNull(channel.readOutbound());
|
||||
}
|
||||
|
||||
private static void testCompression(final byte[] data) throws Exception {
|
||||
|
Loading…
Reference in New Issue
Block a user