Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
plug a memleak on thread cancelation (gras listener are always canceled)
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 4 Jun 2008 16:11:13 +0000 (16:11 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 4 Jun 2008 16:11:13 +0000 (16:11 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5530 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/xbt_sg_synchro.c

index de8521b..6500d93 100644 (file)
@@ -68,6 +68,7 @@ xbt_thread_join(xbt_thread_t thread) {
 void 
 xbt_thread_cancel(xbt_thread_t thread) {
    SIMIX_process_kill(thread->s_process);
+   free(thread->name);
    free(thread);
 }