#vulnerable code 
                                @Test
    public void shouldCompileJadeToHtmlWithReaderTemplateLoader() throws Exception {
        List<String> additionalIgnoredCases = Arrays.asList("52", "74", "100", "104a", "104b", "123", "135");
        if (additionalIgnoredCases.contains(file.replace(".jade", ""))) {
            return;
        }
        String issuesResourcePath = TestFileHelper.getIssuesResourcePath("");
        FileReader fileReader = new FileReader(issuesResourcePath + File.separator + file);
        String templateName = file;
        ReaderTemplateLoader templateLoader = new ReaderTemplateLoader(fileReader, templateName);

        compareJade(templateLoader, templateName);
    } 
                            #location 12 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void shouldCompileJadeToHtmlWithReaderTemplateLoader() throws Exception {
        List<String> additionalIgnoredCases = Arrays.asList("52", "74", "100", "104a", "104b", "123", "135");
        if (additionalIgnoredCases.contains(file.replace(".jade", ""))) {
            return;
        }
        String issuesResourcePath = TestFileHelper.getIssuesResourcePath("");
        String pathToFile = issuesResourcePath + File.separator + file;
        InputStreamReader reader = new InputStreamReader(new FileInputStream(pathToFile), FILES_ENCODING);
        String templateName = file;
        ReaderTemplateLoader templateLoader = new ReaderTemplateLoader(reader, templateName);

        compareJade(templateLoader, templateName);
    }