From 6d822195b0a59514b8fbeee15b0466735efb2289 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 20 Feb 2015 16:53:41 +0900 Subject: [PATCH] Fixed buffer leaks in DefaultSocks5CommandResponseTest --- .../codec/socksx/v5/DefaultSocks5CommandResponseTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java b/codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java index 79717b36c2..36fea75027 100755 --- a/codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java +++ b/codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java @@ -57,6 +57,7 @@ public class DefaultSocks5CommandResponseTest { 0x00 }; assertByteBufEquals(expected, buffer); + buffer.release(); } /** @@ -83,6 +84,7 @@ public class DefaultSocks5CommandResponseTest { 0x50 }; assertByteBufEquals(expected, buffer); + buffer.release(); } /** @@ -106,6 +108,7 @@ public class DefaultSocks5CommandResponseTest { 0x50 }; assertByteBufEquals(expected, buffer); + buffer.release(); } /**