Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bugfix: delete the set of created transitions, otherwise we leak a lot of memory
authorcristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 12 May 2010 17:44:20 +0000 (17:44 +0000)
committercristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 12 May 2010 17:44:20 +0000 (17:44 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7743 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/mc/mc_global.c

index 959fc73..c80540a 100644 (file)
@@ -209,7 +209,8 @@ void MC_state_delete(mc_state_t state)
   xbt_setset_foreach(state->created_transitions, cursor, trans){
     MC_transition_delete(trans);
   }
-  
+
+  xbt_setset_destroy_set(state->created_transitions);
   xbt_setset_destroy_set(state->transitions);
   xbt_setset_destroy_set(state->enabled_transitions);
   xbt_setset_destroy_set(state->interleave);