From d0b355b26e51d517db77172668b7c050e27c736f Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Thu, 3 Jul 2014 19:58:06 +0900 Subject: [PATCH] Fix a buffer leak in JsonObjectDecoderTest --- .../io/netty/handler/codec/json/JsonObjectDecoderTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/codec/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java b/codec/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java index 883716544f..be3598dc34 100644 --- a/codec/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java +++ b/codec/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java @@ -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()); }