output: #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);
          IOUtils.copy(in, new FileOutputStream(output));
  		in.close();
      }
input: #vulnerable code 
                               public void testBzip2Unarchive() throws Exception {
  		final File output = new File(dir, "test-entpackt.txt");
  		System.out.println(dir);
  		final File input = new File(getClass().getClassLoader().getResource("bla.txt.bz2").getFile());
          final InputStream is = new FileInputStream(input);
          //final CompressorInputStream in = new CompressorStreamFactory().createCompressorInputStream("bzip2", is);
          final CompressorInputStream in = new BZip2CompressorInputStream(is);
          IOUtils.copy(in, new FileOutputStream(output));
  		in.close();
      } 
                              #location 7 
                              #vulnerability type RESOURCE_LEAK