#fixed code
                                @Test
    public void testTupleN() {
        try (Database db = db()) {
            db //
                    .select("select name, score, name from person order by name") //
                    .getTupleN() //
                    .firstOrError().test().awaitDone(TIMEOUT_SECONDS, TimeUnit.SECONDS) //
                    .assertComplete() //
                    .assertValue(TupleN.create("FRED", 21, "FRED")); //
        }
    }
#vulnerable code 
                                @Test
    public void testTupleN() {
        db() //
                .select("select name, score, name from person order by name") //
                .getTupleN() //
                .firstOrError().test().awaitDone(TIMEOUT_SECONDS, TimeUnit.SECONDS) //
                .assertComplete() //
                .assertValue(TupleN.create("FRED", 21, "FRED")); //
    } 
                            #location 5 
                            #vulnerability type RESOURCE_LEAK