#fixed code
                             public void testBzip2Unarchive() throws Exception {
		final File input = getFile("bla.txt.bz2");
		final File output = new File(dir, "bla.txt");
        final InputStream is = new FileInputStream(input);
        final CompressorInputStream in = new CompressorStreamFactory().createCompressorInputStream("bzip2", is);
        FileOutputStream os = new FileOutputStream(output);
        IOUtils.copy(in, os);
		is.close();
		os.close();
    }
#vulnerable code 
                             public void testBzip2Unarchive() throws Exception {
		final File input = getFile("bla.txt.bz2");
		final File output = new File(dir, "bla.txt");
        final InputStream is = new FileInputStream(input);
        final CompressorInputStream in = new CompressorStreamFactory().createCompressorInputStream("bzip2", is);
        IOUtils.copy(in, new FileOutputStream(output));
		in.close();
    } 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK