#fixed code
                             public void save(File output) throws IOException {
		FileOutputStream fos = null;
		try {
			fos = new FileOutputStream(output);
			fos.write(this.getEncoded());
			logger.info("Wrote torrent file {}.", output.getAbsolutePath());
		} finally {
			if (fos != null) {
				fos.close();
			}
		}
	}
#vulnerable code 
                             public void save(File output) throws IOException {
		FileOutputStream fos = new FileOutputStream(output);
		fos.write(this.getEncoded());
		fos.close();
		logger.info("Wrote torrent file {}.", output.getAbsolutePath());
	} 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK