From 8d9f9aaf15fb6376d19932bee8adf9dd53151a1c Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 20 May 2008 15:46:28 +0000 Subject: [PATCH] plug a memleak git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5449 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/xbt_os_thread.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.20.1