LzmaFrameEncoderTest double release
Motivation:
2c78902ebc
ensured buffers were released in the general case but didn't clean up an extra release in LzmaFrameEncoderTest#testCompressionOfBatchedFlowOfData which lead to a double release.
Modifications:
LzmaFrameEncoderTest#testCompressionOfBatchedFlowOfData should not explicitly release the buffer because decompress will release the buffer
Result:
No more reference count exception and failed test.
This commit is contained in:
parent
86bbf242b4
commit
e7631867d3
@ -69,7 +69,6 @@ public class LzmaFrameEncoderTest extends AbstractEncoderTest {
|
||||
while ((msg = channel.readOutbound()) != null) {
|
||||
ByteBuf decompressedMsg = decompress(msg, originalLengths.get(i++));
|
||||
decompressed.addComponent(true, decompressedMsg);
|
||||
msg.release();
|
||||
}
|
||||
assertEquals(originalLengths.size(), i);
|
||||
assertEquals(data, decompressed);
|
||||
|
Loading…
Reference in New Issue
Block a user