From 56d732d43995b31d1ec040007efd730fd18aa1ac Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Thu, 26 Jun 2014 09:21:44 +0200 Subject: [PATCH] Fix buffer leaks in Bzip2DecoderTest --- .../io/netty/handler/codec/compression/Bzip2DecoderTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codec/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java b/codec/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java index d2ece7c52c..0ad19b95ee 100644 --- a/codec/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java +++ b/codec/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java @@ -229,9 +229,11 @@ public class Bzip2DecoderTest { ByteBuf msg; while ((msg = channel.readInbound()) != null) { uncompressed.writeBytes(msg); + msg.release(); } final byte[] result = new byte[uncompressed.readableBytes()]; uncompressed.readBytes(result); + uncompressed.release(); assertArrayEquals(BYTES_LARGE, result); }