#vulnerable code 
                                private void load(String name, List<String> col) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(name),"US-ASCII"));
        String line;
        while ((line=r.readLine())!=null)
            col.add(line);
        r.close();
    } 
                            #location 7 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                private void load(String name, List<String> col) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(name),"US-ASCII"));
        try {
            String line;
            while ((line=r.readLine())!=null)
                col.add(line);
        } finally {
            r.close();
        }
    }