Fix memory leak in AbstractCompositeByteBufTest
This commit is contained in:
parent
4097dee49d
commit
6869a2bd23
@ -176,7 +176,7 @@ public abstract class AbstractCompositeByteBufTest extends
|
||||
|
||||
@Test
|
||||
public void testFullConsolidation() {
|
||||
CompositeByteBuf buf = compositeBuffer(Integer.MAX_VALUE);
|
||||
CompositeByteBuf buf = freeLater(compositeBuffer(Integer.MAX_VALUE));
|
||||
buf.addComponent(wrappedBuffer(new byte[] { 1 }));
|
||||
buf.addComponent(wrappedBuffer(new byte[] { 2, 3 }));
|
||||
buf.addComponent(wrappedBuffer(new byte[] { 4, 5, 6 }));
|
||||
|
Loading…
Reference in New Issue
Block a user