#fixed code
                             public void saveModel(String filePath) throws IOException {
		ObjectOutput oot = new ObjectOutputStream(new FileOutputStream(filePath));
		oot.writeObject(this);
	}
#vulnerable code 
                             public void saveModel(String filePath) throws IOException {
		BufferedWriter bw = new BufferedWriter(new FileWriter(new File(filePath))) ;
		writeMap(bw,idWordMap) ;
		writeMap(bw,word2Mc) ;
		writeMap(bw,ww2Mc.get()) ;

	} 
                            #location 7 
                            #vulnerability type RESOURCE_LEAK