X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cbab0c1ae2e08f519824609764b951631c163766..856e3152cf4b3d48782848ce738ed58e447f3a52:/src/xbt/xbt_thread.c diff --git a/src/xbt/xbt_thread.c b/src/xbt/xbt_thread.c index b35218df5a..6a821cebd7 100644 --- a/src/xbt/xbt_thread.c +++ b/src/xbt/xbt_thread.c @@ -79,6 +79,7 @@ xbt_thread_join(xbt_thread_t thread,void ** thread_return) { if ((errcode = pthread_join(thread->t,thread_return))) THROW0(system_error,errcode, "pthread_join failed"); + free(thread); } void xbt_thread_exit(int *retval) {