#vulnerable code 
                                @Test
    public void rendersProfilePageWithoutRateInFirefox() throws Exception {
        final Farm farm = new PropsFarm(new FkFarm());
        final String uid = "yegor256";
        MatcherAssert.assertThat(
            new View(farm, String.format("/u/%s", uid)).html(),
            Matchers.containsString("rate</a> is not defined")
        );
    } 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void rendersProfilePageWithoutRateInFirefox() throws Exception {
        final Farm farm = FkFarm.props();
        final String uid = "yegor256";
        MatcherAssert.assertThat(
            new View(farm, String.format("/u/%s", uid)).html(),
            Matchers.containsString("rate</a> is not defined")
        );
    }