Fix memory leak in AbstractCompositeByteBufTest

This commit is contained in:
Trustin Lee 2013-03-22 09:01:28 +09:00
parent 4097dee49d
commit 6869a2bd23

View File

@ -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 }));