#fixed code
                                protected static Collection<String> fileReader(String timeCategory) throws IOException {
        System.out.println("timeCategory" + timeCategory);
        FileReader file = new FileReader(relativePath + timeCategory + listFileName);
       try( BufferedReader br = new BufferedReader(file)) {
           String line = "";
           List<String> list = new ArrayList<String>();
           int i = 0;
           while ((line = br.readLine()) != null) {
               list.add(i, line);
               i++;
           }

           return list;
       }
    }
#vulnerable code 
                                protected static Collection<String> fileReader(String timeCategory) throws IOException {
        System.out.println("timeCategory" + timeCategory);
        FileReader file = new FileReader(relativePath + timeCategory + listFileName);
        BufferedReader br = new BufferedReader(file);
        String line = "";
        List<String> list = new ArrayList<String>();
        int i = 0;
        while ((line = br.readLine()) != null) {
            list.add(i, line);
            i++;
        }
        return list;
    } 
                            #location 12 
                            #vulnerability type RESOURCE_LEAK