#vulnerable code 
                             private void write(long gaSessionId, String jobId, boolean isF, String message) {
		if(isF){
			message += endMark;
		}
		
		if(StringUtils.isEmpty(message)){
			return;
		}
		
		RandomAccessFile rf;
		
		try {
			new File(executeResultDir).mkdir();
			rf = new RandomAccessFile(getExecuteFilePath(jobId), "rw");
			rf.seek(rf.length());
			rf.write(message.getBytes());
			rf.close();
		} catch (IOException e) {
			logger.warn("jobFile write error!",e);
			return ;
		}  
	} 
                            #location 18 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             private void write(long gaSessionId, String jobId, boolean isF, String message) {
		if(isF){
			message += endMark;
		}
		
		if(StringUtils.isEmpty(message)){
			return;
		}
		
		RandomAccessFile rf = null;
		
		try {
			new File(executeResultDir).mkdir();
			rf = new RandomAccessFile(getExecuteFilePath(jobId), "rw");
			rf.seek(rf.length());
			rf.write(message.getBytes());
			rf.close();
		} catch (IOException e) {
			logger.warn("jobFile write error!",e);
			return ;
		} finally {
			if( null != rf ) {
				try {
					rf.close();
				}catch(Exception e) {
					//
				}
			}
		}
	}