Release ByteBuf in CacheClient when downloading chunks

This commit is contained in:
Joshua Filby
2018-02-21 08:16:31 -06:00
committed by Adam
parent 4fdc9098f0
commit 05f1de374c

View File

@@ -91,7 +91,9 @@ public class ArchiveResponseDecoder extends ByteToMessageDecoder
bytesInBlock,
compressedData.writerIndex(), size);
compressedData.writeBytes(in.readBytes(bytesToRead));
ByteBuf chunk = in.readBytes(bytesToRead);
compressedData.writeBytes(chunk);
chunk.release();
totalRead += bytesToRead;