#vulnerable code 
                                @Test
    public void redirectsWhenAccessingNonexistentUsersAgenda()
        throws Exception {
        final Farm farm = new PropsFarm(new FkFarm());
        new People(farm).bootstrap().touch("yegor256");
        MatcherAssert.assertThat(
            new RsPrint(
                new TkApp(farm).act(
                    new RqWithUser(
                        farm,
                        new RqFake("GET", "/u/foo-user/agenda")
                    )
                )
            ),
            new HmRsStatus(HttpURLConnection.HTTP_SEE_OTHER)
        );
    } 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void redirectsWhenAccessingNonexistentUsersAgenda()
        throws Exception {
        final Farm farm = new PropsFarm(new FkFarm());
        new People(farm).bootstrap().touch("yegor256");
        MatcherAssert.assertThat(
            new RsPrint(
                new TkApp(farm).act(
                    new RqWithUser.WithInit(
                        farm,
                        new RqFake("GET", "/u/foo-user/agenda")
                    )
                )
            ),
            new HmRsStatus(HttpURLConnection.HTTP_SEE_OTHER)
        );
    }