Fix a buffer leak in JsonObjectDecoderTest

This commit is contained in:
Trustin Lee 2014-07-03 19:58:06 +09:00
parent aed13ba5ef
commit d0b355b26e

View File

@ -24,8 +24,6 @@ import io.netty.handler.codec.TooLongFrameException;
import io.netty.util.CharsetUtil;
import org.junit.Test;
import java.nio.charset.Charset;
import static org.junit.Assert.*;
public class JsonObjectDecoderTest {
@ -176,6 +174,7 @@ public class JsonObjectDecoderTest {
ByteBuf res = ch.readInbound();
assertEquals(object, res.toString(CharsetUtil.UTF_8));
res.release();
assertFalse(ch.finish());
}