A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
plug a memleak
[simgrid.git]
/
src
/
xbt
/
xbt_os_thread.c
diff --git
a/src/xbt/xbt_os_thread.c
b/src/xbt/xbt_os_thread.c
index
00e5c55
..
63cb160
100644
(file)
--- 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;