#vulnerable code 
                                private static TreeMap loadMap(String mapname, String filename, String sep) {
	TreeMap map = new TreeMap();
	try {
	    BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));
	    String line;
	    int pos;
	    while ((line = br.readLine()) != null) {
		line = line.trim();
		if ((line.length() > 0) && (!(line.startsWith("#"))) && ((pos = line.indexOf(sep)) > 0))
		    map.put(line.substring(0, pos).trim().toLowerCase(), line.substring(pos + sep.length()).trim());
	    }
	    br.close();
	    serverLog.logInfo("PROXY", "read " + mapname + " map from file " + filename);
	} catch (IOException e) {}
	return map;
    } 
                            #location 14 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                private static TreeMap loadMap(String mapname, String filename, String sep) {
		TreeMap map = new TreeMap();
        BufferedReader br = null;
		try {
		    br = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));
		    String line;
		    int pos;
		    while ((line = br.readLine()) != null) {
				line = line.trim();
				if ((line.length() > 0) && (!(line.startsWith("#"))) && ((pos = line.indexOf(sep)) > 0))
				    map.put(line.substring(0, pos).trim().toLowerCase(), line.substring(pos + sep.length()).trim());
		    }
		    serverLog.logInfo("PROXY", "read " + mapname + " map from file " + filename);
		} catch (IOException e) {            
		} finally {
            if (br != null) try { br.close(); } catch (Exception e) {}
		}
		return map;
    }