Fix a resource leak in StompSubframeAggregatorTest

This commit is contained in:
Trustin Lee 2014-08-11 10:45:56 -07:00
parent f7e183f8e4
commit 59cf8ffcb4

View File

@ -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());
}