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_thread.c
diff --git
a/src/xbt/xbt_thread.c
b/src/xbt/xbt_thread.c
index
b35218d
..
6a821ce
100644
(file)
--- 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) {