Fix memory leak in UnpooledTest

- nothing critical. It's a test that leaks.  Not CompositeByteBuf implementation.
This commit is contained in:
Trustin Lee 2013-03-12 16:49:14 +09:00
parent cef81f1bff
commit b271774c90

View File

@ -207,7 +207,11 @@ public class UnpooledTest {
EMPTY_BUFFER,
wrappedBuffer(new byte[16]).order(LITTLE_ENDIAN),
EMPTY_BUFFER);
assertEquals(16, buf.capacity());
try {
assertEquals(16, buf.capacity());
} finally {
buf.release();
}
}
@Test