output: #fixed code
                                  public String getCurrentRevision(String repoLocations, String repoName) {
          String currentRevision = "";
  
          ProcessBuilder processBuilder = new ProcessBuilder(this.SVNBINARYPATH, "info", "--xml");
          processBuilder.directory(new File(repoLocations + repoName));
          Process process = null;
          BufferedReader bufferedReader = null;
  
          try {
              process = processBuilder.start();
  
              InputStream is = process.getInputStream();
              InputStreamReader isr = new InputStreamReader(is);
              bufferedReader = new BufferedReader(isr);
              StringBuilder sb = new StringBuilder();
              String line;
  
              while ((line = bufferedReader.readLine()) != null) {
                  sb.append(Helpers.removeUTF8BOM(line));
              }
  
              DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
              DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
  
              Singleton.getLogger().info("getCurrentRevision: " + repoName + " " + sb.toString());
  
              Document doc = dBuilder.parse(new ByteArrayInputStream(sb.toString().getBytes()));
              doc.getDocumentElement().normalize();
  
              NodeList nList = doc.getElementsByTagName("entry");
  
              for (int temp = 0; temp < nList.getLength(); temp++) {
                  Node nNode = nList.item(temp);
  
                  if (nNode.getNodeType() == Node.ELEMENT_NODE) {
                      Element eElement = (Element) nNode;
                      currentRevision = eElement.getAttribute("revision");
                  }
              }
          } catch (IOException | ParserConfigurationException | SAXException ex) {
              Singleton.getLogger().warning("ERROR - caught a " + ex.getClass() + " in " + this.getClass() +  " getCurrentRevision for " + repoName + "\n with message: " + ex.getMessage());
          }
          finally {
              Helpers.closeQuietly(process);
              Helpers.closeQuietly(bufferedReader);
          }
  
          return currentRevision;
      }
input: #vulnerable code 
                                  public String getCurrentRevision(String repoLocations, String repoName) {
          String currentRevision = "";
  
          ProcessBuilder processBuilder = new ProcessBuilder(this.SVNBINARYPATH, "info", "--xml");
          processBuilder.directory(new File(repoLocations + repoName));
          Process process = null;
  
          try {
              process = processBuilder.start();
  
              InputStream is = process.getInputStream();
              InputStreamReader isr = new InputStreamReader(is);
              BufferedReader br = new BufferedReader(isr);
              StringBuilder sb = new StringBuilder();
              String line;
  
              while ((line = br.readLine()) != null) {
                  sb.append(Helpers.removeUTF8BOM(line));
              }
  
              DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
              DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
  
              Singleton.getLogger().info("getCurrentRevision: " + repoName + " " + sb.toString());
  
              Document doc = dBuilder.parse(new ByteArrayInputStream(sb.toString().getBytes()));
              doc.getDocumentElement().normalize();
  
              NodeList nList = doc.getElementsByTagName("entry");
  
              for (int temp = 0; temp < nList.getLength(); temp++) {
                  Node nNode = nList.item(temp);
  
                  if (nNode.getNodeType() == Node.ELEMENT_NODE) {
                      Element eElement = (Element) nNode;
                      currentRevision = eElement.getAttribute("revision");
                  }
              }
          } catch (IOException | ParserConfigurationException | SAXException ex) {
              Singleton.getLogger().warning("ERROR - caught a " + ex.getClass() + " in " + this.getClass() +  " getCurrentRevision for " + repoName + "\n with message: " + ex.getMessage());
          }
          finally {
              Helpers.closeQuietly(process);
          }
  
          return currentRevision;
      } 
                              #location 39 
                              #vulnerability type RESOURCE_LEAK