#vulnerable code 
                                private void importRelationships(File file) throws IOException {
        BufferedReader bf = new BufferedReader(new FileReader(file));
        final Data data = new Data(bf.readLine(), "\t", 3);
        Object[] rel = new Object[3];
        final Type type = new Type();
        String line;
        report.reset();
        while ((line = bf.readLine()) != null) {
            final Map<String, Object> properties = map(data.update(line, rel));
            db.createRelationship(id(rel[0]), id(rel[1]), type.update(rel[2]), properties);
            report.dots();
        }
        report.finishImport("Relationships");
    } 
                            #location 12 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                private void importRelationships(File file) throws IOException {
        BufferedReader bf = new BufferedReader(new FileReader(file));
        final Data data = new Data(bf.readLine(), "\t", 3);
        Object[] rel = new Object[3];
        final RelType relType = new RelType();
        String line;
        report.reset();
        while ((line = bf.readLine()) != null) {
            final Map<String, Object> properties = data.update(line, rel);
            db.createRelationship(id(rel[0]), id(rel[1]), relType.update(rel[2]), properties);
            report.dots();
        }
        report.finishImport("Relationships");
    }