#fixed code
                                private boolean serverResponds() throws IOException, InterruptedException
    {
        try
        {
            URI uri = URI.create( DEFAULT_URL );
            SocketClient client = new SocketClient( uri.getHost(), uri.getPort() );
            client.start();
            client.stop();
            return true;
        }
        catch ( ClientException e )
        {
            return false;
        }
    }
#vulnerable code 
                                private boolean serverResponds() throws IOException, InterruptedException
    {
        try
        {
            URI uri = URI.create( DEFAULT_URL );
            SocketClient client = new SocketClient( uri.getHost(), uri.getPort(), new DevNullLogger() );
            client.start();
            client.stop();
            return true;
        }
        catch ( ClientException e )
        {
            return false;
        }
    } 
                            #location 11 
                            #vulnerability type RESOURCE_LEAK