#vulnerable code 
                                @Test
    public void testAutoMapWithQueryInAnnotation() {
        db().select(Person10.class) //
                .get() //
                .firstOrError() //
                .map(Person10::score) //
                .test().awaitDone(TIMEOUT_SECONDS, TimeUnit.SECONDS) //
                .assertValue(21) //
                .assertComplete();
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void testAutoMapWithQueryInAnnotation() {
        try (Database db = db()) {
            db.select(Person10.class) //
                    .get() //
                    .firstOrError() //
                    .map(Person10::score) //
                    .test().awaitDone(TIMEOUT_SECONDS, TimeUnit.SECONDS) //
                    .assertValue(21) //
                    .assertComplete();
        }
    }