#vulnerable code 
                                public void load(File file) throws IOException {
        InputStream in = new FileInputStream(file);
        load(in);
        in.close();
    } 
                            #location 5 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public void load(File file) throws IOException {
        InputStream in = null;
        try {
        	in = new FileInputStream(file);
        	load(in);
        } finally {
        	if (in != null) {
        		in.close();
        	}
        }
    }