#vulnerable code 
                                @Override
    public void purgeDatabase() {
        String url = session.ensureTransaction().url();
        session.requestHandler().execute(new DeleteNodeStatements().purge(), url).close();
        session.context().clear();
    } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Override
    public void purgeDatabase() {
        Transaction tx = session.ensureTransaction();
        session.requestHandler().execute(new DeleteNodeStatements().purge(), tx).close();
        session.context().clear();
    }