Merge pull request #92 from davies/fix_leak

fix memory leak in SnappyOutputStream
This commit is contained in:
Taro L. Saito 2014-10-26 20:40:02 +09:00
commit be0f2dd5d3
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public class SnappyOutputStream extends OutputStream {
this.outputBufferAllocator = bufferAllocatorFactory.getBufferAllocator(outputSize);
inputBuffer = inputBufferAllocator.allocate(inputSize);
outputBuffer = inputBufferAllocator.allocate(outputSize);
outputBuffer = outputBufferAllocator.allocate(outputSize);
outputCursor = SnappyCodec.currentHeader.writeHeader(outputBuffer, 0);
}