#fixed code
                                private static List<String> loadFileContent(String path) {
        BufferedReader stream = null;
        try {
            InputStream in = TaintAnalysis.class.getClassLoader().getResourceAsStream(path);
            stream = new BufferedReader(new InputStreamReader(in, "utf-8"));
            String line;
            List<String> content = new ArrayList<String>();
            while ((line = stream.readLine()) != null) {
                content.add(line.trim());
            }
            return content;
        } catch (IOException ex) {
            assert false : ex.getMessage();
        } finally {
            IO.close(stream);
        }
        return new ArrayList<String>();
    }
#vulnerable code 
                                private static List<String> loadFileContent(String path) {
        try {
            InputStream in = TaintAnalysis.class.getClassLoader().getResourceAsStream(path);
            BufferedReader stream = new BufferedReader(new InputStreamReader(in));
            String line;
            List<String> content = new ArrayList<String>();
            while ((line = stream.readLine()) != null) {
                content.add(line.trim());
            }
            stream.close();
            return content;
        } catch (IOException e) {
            LOG.log(Level.SEVERE, "Unable to load data from {0}", path);
        }
        return new ArrayList<String>();
    } 
                            #location 12 
                            #vulnerability type RESOURCE_LEAK