Fix another memory leak in AbstractByteBufTest

This commit is contained in:
Trustin Lee 2013-04-23 13:46:34 +09:00
parent f149cf5220
commit 87007d4eb8

View File

@ -1348,7 +1348,7 @@ public abstract class AbstractByteBufTest {
for (int i = 0; i < buffer.capacity(); i ++) {
buffer.writeByte((byte) i);
}
ByteBuf copy = copiedBuffer(buffer);
ByteBuf copy = freeLater(copiedBuffer(buffer));
// Discard the first (CAPACITY / 2 - 1) bytes.
buffer.setIndex(CAPACITY / 2 - 1, CAPACITY - 1);