#vulnerable code 
                                static ArchiveOutputStream createArchiveOutputStream(CommonsArchiver archiver, File archive) throws IOException,
            ArchiveException {
        return createArchiveOutputStream(archiver.getFileType(), new FileOutputStream(archive));
    } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                static ArchiveOutputStream createArchiveOutputStream(CommonsArchiver archiver, File archive) throws IOException,
            ArchiveException {
        return createArchiveOutputStream(archiver.getArchiveFormat(), archive);
    }