From fe59ab1b9c1a5d69056a6b0863edbf98dc7bf603 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Thu, 18 Jul 2013 20:55:02 +0900 Subject: [PATCH] Fix resource leak in LengthFieldBasedFrameDecoderTest --- .../handler/codec/frame/LengthFieldBasedFrameDecoderTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/codec/src/test/java/io/netty/handler/codec/frame/LengthFieldBasedFrameDecoderTest.java b/codec/src/test/java/io/netty/handler/codec/frame/LengthFieldBasedFrameDecoderTest.java index 401eed24f9..dd740d858f 100644 --- a/codec/src/test/java/io/netty/handler/codec/frame/LengthFieldBasedFrameDecoderTest.java +++ b/codec/src/test/java/io/netty/handler/codec/frame/LengthFieldBasedFrameDecoderTest.java @@ -44,6 +44,7 @@ public class LengthFieldBasedFrameDecoderTest { ch.writeInbound(Unpooled.wrappedBuffer(new byte[] { 0, 0, 0, 1, 'A' })); ByteBuf buf = (ByteBuf) ch.readInbound(); assertEquals("A", buf.toString(CharsetUtil.ISO_8859_1)); + buf.release(); } }