#vulnerable code 
                              public static void main(String[] args) throws IOException {
    Timer.open();
    SSLConfiguration configuration = SSLConfiguration.loadClassPath("server-ssl.properties");
    SocksProxyServer proxyServer = new SSLSocksProxyServer(Socks5Handler.class, configuration);
    proxyServer.setBindPort(1081);
    proxyServer.setSupportMethods(new NoAuthenticationRequiredMethod());
    try {
      proxyServer.start();
    } catch (IOException e) {
      logger.error(e.getMessage(), e);
    }
  } 
                            #location 8 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              public static void main(String[] args) throws IOException {
    Timer.open();
    SSLConfiguration configuration = SSLConfiguration.loadClassPath("server-ssl.properties");
    SocksProxyServer proxyServer = SocksServerBuilder.buildAnonymousSSLSocks5Server(1081, configuration);
    try {
      proxyServer.start();
    } catch (IOException e) {
      logger.error(e.getMessage(), e);
    }
  }