#vulnerable code 
                                public static List<String> readClusterConf() throws IOException {
        List<String> instanceList = new ArrayList<String>();
        List<String> lines = IoUtils.readLines(
                new InputStreamReader(new FileInputStream(new File(CLUSTER_CONF_FILE_PATH)), UTF_8));
        String comment = "#";
        for (String line : lines) {
            String instance = line.trim();
            if (instance.startsWith(comment)) {
                // # it is ip
                continue;
            }
            if (instance.contains(comment)) {
                // 192.168.71.52:8848 # Instance A
                instance = instance.substring(0, instance.indexOf(comment));
                instance = instance.trim();
            }
            instanceList.add(instance);
        }
        return instanceList;
    } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static List<String> readClusterConf() throws IOException {
        List<String> instanceList = new ArrayList<String>();
        Reader reader = null;

        try {
            reader = new InputStreamReader(new FileInputStream(new File(CLUSTER_CONF_FILE_PATH)), UTF_8);
            List<String> lines = IoUtils.readLines(reader);
            String comment = "#";
            for (String line : lines) {
                String instance = line.trim();
                if (instance.startsWith(comment)) {
                    // # it is ip
                    continue;
                }
                if (instance.contains(comment)) {
                    // 192.168.71.52:8848 # Instance A
                    instance = instance.substring(0, instance.indexOf(comment));
                    instance = instance.trim();
                }
                instanceList.add(instance);
            }
            return instanceList;
        } finally {
            if (reader != null) {
                reader.close();
            }
        }
    }