#vulnerable code 
                                public void testGetLine() throws IOException {
        CSVParser parser = new CSVParser(new StringReader(code));
        String[] tmp = null;
        for (int i = 0; i < res.length; i++) {
            tmp = parser.getLine();
            assertTrue(Arrays.equals(res[i], tmp));
        }
        tmp = parser.getLine();
        assertTrue(tmp == null);
    } 
                            #location 7 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public void testGetLine() throws IOException {
        CSVParser parser = new CSVParser(new StringReader(code));
        for (String[] re : res) {
            assertTrue(Arrays.equals(re, parser.getLine()));
        }
        
        assertTrue(parser.getLine() == null);
    }