#fixed code
                             public void testGzipCreation()  throws Exception {
		final File input = getFile("test1.xml");
		final File output = new File(dir, "test1.xml.gz");
		final OutputStream out = new FileOutputStream(output);
		final CompressorOutputStream cos = new CompressorStreamFactory().createCompressorOutputStream("gz", out);
		IOUtils.copy(new FileInputStream(input), cos);
		cos.close();
	}
#vulnerable code 
                             public void testGzipCreation()  throws Exception {
		final File output = new File(dir, "bla.gz");
		final File file1 = new File(getClass().getClassLoader().getResource("test1.xml").getFile());
		final OutputStream out = new FileOutputStream(output);
		CompressorOutputStream cos = new CompressorStreamFactory().createCompressorOutputStream("gz", out);
		IOUtils.copy(new FileInputStream(file1), cos);
		cos.close();
	} 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK