output: #fixed code
                               public void saveConfig(String configString, File file) throws IOException {
  
  		String configuration = this.prepareConfigString(configString);
  
  		BufferedWriter writer = null;
  		try {
  			writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), "UTF-8"));
  			writer.write(configuration);
  			writer.flush();
  		} catch (IOException e) {
  			throw e;
  		} finally {
  			if (writer != null)
  				writer.close();
  		}
  	}
input: #vulnerable code 
                               public void saveConfig(String configString, File file) throws IOException {
  
  		String configuration = this.prepareConfigString(configString);
  
  		BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), "UTF-8"));
  		writer.write(configuration);
  		writer.flush();
  		writer.close();
  
  	} 
                              #location 10 
                              #vulnerability type RESOURCE_LEAK