#vulnerable code 
                                @Test
    public void rendersHtmlAwardsPageForFirefox() throws Exception {
        final Farm farm = new PropsFarm(new FkFarm());
        final String user = "yegor256";
        final int points = 1234;
        new Awards(farm, user).bootstrap()
            .add(new FkProject(), points, "none", "reason");
        final String html = new View(
            farm, String.format("/u/%s/awards", user)
        ).html();
        MatcherAssert.assertThat(
            html,
            XhtmlMatchers.hasXPaths("//xhtml:html")
        );
        MatcherAssert.assertThat(
            html,
            Matchers.containsString(String.format("+%d", points))
        );
    } 
                            #location 10 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void rendersHtmlAwardsPageForFirefox() throws Exception {
        final Farm farm = FkFarm.props();
        final String user = "yegor256";
        final int points = 1234;
        new Awards(farm, user).bootstrap()
            .add(new FkProject(), points, "none", "reason");
        final String html = new View(
            farm, String.format("/u/%s/awards", user)
        ).html();
        MatcherAssert.assertThat(
            html,
            XhtmlMatchers.hasXPaths("//xhtml:html")
        );
        MatcherAssert.assertThat(
            html,
            Matchers.containsString(String.format("+%d", points))
        );
    }