X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f3ac24207e20bfbf5f44be62ab5186a14730a0b3..45cb2841f9c4e7b7117b6ffd9fef5e78c9004931:/src/xbt/xbt_os_thread.c diff --git a/src/xbt/xbt_os_thread.c b/src/xbt/xbt_os_thread.c index 63cb160e51..54880f6f45 100644 --- a/src/xbt/xbt_os_thread.c +++ b/src/xbt/xbt_os_thread.c @@ -103,6 +103,11 @@ void xbt_os_thread_mod_exit(void) { // if ((errcode=pthread_key_delete(xbt_self_thread_key))) // THROW0(system_error,errcode,"pthread_key_delete failed for xbt_self_thread_key"); + free(main_thread->exception); + free(main_thread); +#ifndef HAVE_SEM_WAIT + xbt_os_mutex_destroy(next_sem_ID_lock); +#endif } static void * wrapper_start_routine(void *s) {