Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Uggly and naughty memleak that caused a lots of performance problems !
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 16 Jun 2008 12:54:12 +0000 (12:54 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 16 Jun 2008 12:54:12 +0000 (12:54 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5622 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simix/smx_process.c

index c909ecf..fa1fc66 100644 (file)
@@ -332,8 +332,9 @@ void SIMIX_process_suspend(smx_process_t process)
     surf_workstation_model->common_public->suspend(dummy->simdata->surf_action);
     SIMIX_register_action_to_condition(dummy, cond);
     __SIMIX_cond_wait(cond);
-    //SIMIX_action_destroy(dummy);
-    //SIMIX_cond_destroy(cond);
+    SIMIX_unregister_action_to_condition(dummy, cond);
+    SIMIX_action_destroy(dummy);
+    SIMIX_cond_destroy(cond);
   }
   return;
 }