#fixed code
                             public boolean removeAddedAuthByFolderId(List<String> fIds) {
		if (fIds == null || fIds.size() == 0) {
			return false;
		}
		Set<String> configs = accountp.stringPropertieNames();
		List<String> invalidConfigs = new ArrayList<>();
		for (String fId : fIds) {
			for (String config : configs) {
				if (config.endsWith(".auth." + fId)) {
					invalidConfigs.add(config);
				}
			}
		}
		for (String config : invalidConfigs) {
			accountp.removeProperty(config);
		}
		try (FileOutputStream accountSettingOut = new FileOutputStream(this.confdir + ACCOUNT_PROPERTIES_FILE)) {
			FileLock lock = accountSettingOut.getChannel().lock();
			accountp.store(accountSettingOut, null);
			lock.release();
			return true;
		} catch (Exception e) {
			Printer.instance.print("错误：更新账户配置文件时出现错误，请立即检查账户配置文件。");
			return false;
		}
	}
#vulnerable code 
                             public boolean removeAddedAuthByFolderId(List<String> fIds) {
		if(fIds == null || fIds.size() == 0) {
			return false;
		}
		Set<String> configs=accountp.stringPropertieNames();
		List<String> invalidConfigs = new ArrayList<>();
		for(String fId:fIds) {
			for (String config:configs) {
				if(config.endsWith(".auth."+fId)) {
					invalidConfigs.add(config);
				}
			}
		}
		for(String config:invalidConfigs) {
			accountp.removeProperty(config);
		}
		try {
			accountp.store(new FileOutputStream(this.confdir + ACCOUNT_PROPERTIES_FILE), null);
			return true;
		} catch (Exception e) {
			Printer.instance.print("错误：更新账户配置文件时出现错误，请立即检查账户配置文件。");
			return false;
		}
	} 
                            #location 18 
                            #vulnerability type RESOURCE_LEAK