Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] when destroying a container, remove its references from allContainers
[simgrid.git] / src / instr / instr_paje.c
index 79c78e3..86eeadf 100644 (file)
@@ -347,6 +347,9 @@ void destroyContainer (container_t container)
     new_pajeDestroyContainer(container);
   }
 
+  //remove it from allContainers data structure
+  xbt_dict_remove (allContainers, container->name);
+
   //free
   xbt_free (container->name);
   xbt_free (container->id);
@@ -357,6 +360,7 @@ void destroyContainer (container_t container)
 
 static void recursiveDestroyContainer (container_t container)
 {
+  XBT_DEBUG("recursiveDestroyContainer %s", container->name);
   xbt_dict_cursor_t cursor = NULL;
   container_t child;
   char *child_name;
@@ -368,6 +372,7 @@ static void recursiveDestroyContainer (container_t container)
 
 static void recursiveDestroyType (type_t type)
 {
+  XBT_DEBUG("recursiveDestroyType %s", type->name);
   xbt_dict_cursor_t cursor = NULL;
   type_t child;
   char *child_name;