#vulnerable code 
                             public static void delete(String key) throws IOException {
		Properties props = getProperty();
		OutputStream fos = new FileOutputStream(propertyFile);
		props.remove(key);
		
		props.store(fos, "Delete '" + key + "' value");

	} 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             public static void delete(String key) throws IOException {
		delete(propertyFile, key);
	}