Merge pull request #92 from davies/fix_leak
fix memory leak in SnappyOutputStream
This commit is contained in:
commit
be0f2dd5d3
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue