#vulnerable code 
                                @Test
    public void testUpdateOneRow() {
        db().update("update person set score=20 where name='FRED'") //
                .counts() //
                .test().awaitDone(TIMEOUT_SECONDS, TimeUnit.SECONDS) //
                .assertValue(1) //
                .assertComplete();
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void testUpdateOneRow() {
        try (Database db = db()) {
            db.update("update person set score=20 where name='FRED'") //
                    .counts() //
                    .test().awaitDone(TIMEOUT_SECONDS, TimeUnit.SECONDS) //
                    .assertValue(1) //
                    .assertComplete();
        }
    }