#vulnerable code 
                                @Test
    public void rendersIndexPage() throws Exception {
        final Farm farm = new FtFarm(new PropsFarm(new FkFarm()));
        MatcherAssert.assertThat(
            XhtmlMatchers.xhtml(new View(farm, "/").xml()),
            XhtmlMatchers.hasXPaths("/page/alive")
        );
    } 
                            #location 5 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void rendersIndexPage() throws Exception {
        final Farm farm = FkFarm.props();
        MatcherAssert.assertThat(
            XhtmlMatchers.xhtml(new View(farm, "/").xml()),
            XhtmlMatchers.hasXPaths("/page/alive")
        );
    }