From: mquinson Date: Tue, 20 May 2008 15:46:28 +0000 (+0000) Subject: plug a memleak X-Git-Tag: v3.3~487 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8d9f9aaf15fb6376d19932bee8adf9dd53151a1c plug a memleak git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5449 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/xbt_os_thread.c b/src/xbt/xbt_os_thread.c index 00e5c55938..63cb160e51 100644 --- a/src/xbt/xbt_os_thread.c +++ b/src/xbt/xbt_os_thread.c @@ -155,6 +155,9 @@ xbt_os_thread_join(xbt_os_thread_t thread,void ** thread_return) { if (thread->exception) free(thread->exception); + if (thread->name) + free(thread->name); + if (thread == main_thread) /* just killed main thread */ main_thread = NULL;