#vulnerable code 
                                @Override
    public void open() throws Exception {
        currentRecordNumber = 0;
        scanner = new Scanner(new FileInputStream(input), charsetName);
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Override
    public void open() throws Exception {
        currentRecordNumber = 0;
        scanner = new Scanner(input, charsetName);
    }