#vulnerable code 
                                static CompressorOutputStream createCompressorOutputStream(CommonsCompressor compressor, File destination)
            throws IOException, CompressorException {
        return createCompressorOutputStream(compressor.getFileType(), new FileOutputStream(destination));
    } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                static CompressorOutputStream createCompressorOutputStream(CommonsCompressor compressor, File destination)
            throws IOException, CompressorException {
        return createCompressorOutputStream(compressor.getCompressionType(), destination);
    }