/* Let's free maestro now */
delete simix_global->maestro_process->context;
+ simix_global->maestro_process->context = nullptr;
xbt_free(simix_global->maestro_process->running_ctx);
- xbt_free(simix_global->maestro_process);
+ simix_global->maestro_process->running_ctx = nullptr;
+ delete simix_global->maestro_process;
simix_global->maestro_process = NULL;
/* Restore the default exception setup */
XBT_INFO("Process %lu (%s@%s): waiting for %s synchro %p (%s) in state %d to finish",
process->pid, process->name.c_str(), sg_host_get_name(process->host),
synchro_description, process->waiting_synchro,
- process->waiting_synchro->name, (int)process->waiting_synchro->state);
+ process->waiting_synchro->name.c_str(), (int)process->waiting_synchro->state);
}
else {
XBT_INFO("Process %lu (%s@%s)", process->pid, process->name.c_str(), sg_host_get_name(process->host));