res->s_process = SIMIX_process_create(name,
xbt_thread_create_wrapper, res,
SIMIX_host_get_name(SIMIX_host_self()),
- 0,/*props*/NULL);
+ 0,NULL,/*props*/NULL);
// free(name);
return res;
}
void
xbt_thread_cancel(xbt_thread_t thread) {
SIMIX_process_kill(thread->s_process);
+ free(thread->name);
free(thread);
}