void cleanInitNewHistoryState(int offset, int flags, int num){
if(history_state != NULL){
+ //we should test if we can recursively free the object
free(history_state);
}
history_state = (HISTORY_STATE *)malloc(sizeof(HISTORY_STATE));
free(cs_path);
return errno;
}
-