From 59cf8ffcb446dc5af04b92ad0a8b6d0a2eb4b3ed Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Mon, 11 Aug 2014 10:45:56 -0700 Subject: [PATCH] Fix a resource leak in StompSubframeAggregatorTest --- .../handler/codec/stomp/StompSubframeAggregatorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeAggregatorTest.java b/codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeAggregatorTest.java index 34b929ac49..5f896b9691 100644 --- a/codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeAggregatorTest.java +++ b/codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeAggregatorTest.java @@ -45,8 +45,8 @@ public class StompSubframeAggregatorTest { incoming.writeBytes(StompTestConstants.CONNECT_FRAME.getBytes()); channel.writeInbound(incoming); - StompHeadersSubframe frame = channel.readInbound(); - Assert.assertTrue(frame instanceof StompFrame); + StompFrame frame = channel.readInbound(); + frame.release(); Assert.assertNull(channel.readInbound()); }