Release ByteBuf in CacheClient when downloading chunks

This commit is contained in:
Joshua Filby
2018-02-21 09:16:31 -05:00
committed by Adam
parent 4fdc9098f0
commit 05f1de374c
@@ -91,7 +91,9 @@ public class ArchiveResponseDecoder extends ByteToMessageDecoder
bytesInBlock, bytesInBlock,
compressedData.writerIndex(), size); compressedData.writerIndex(), size);
compressedData.writeBytes(in.readBytes(bytesToRead)); ByteBuf chunk = in.readBytes(bytesToRead);
compressedData.writeBytes(chunk);
chunk.release();
totalRead += bytesToRead; totalRead += bytesToRead;