#fixed code
                             public static void write(String key, String value) throws IOException {
		write(propertyFile, key, value);
	}
#vulnerable code 
                             public static void write(String key, String value) throws IOException {
		Properties props = getProperty();
		OutputStream fos = new FileOutputStream(propertyFile);
		props.setProperty(key, value);

		props.store(fos, "Update '" + key + "' value");

	} 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK