Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] fix, free memory even if user requests the non-destruction of containers
[simgrid.git] / src / instr / instr_paje.c
index 1bc7133..3c1591c 100644 (file)
@@ -310,7 +310,10 @@ void destroyContainer (container_t container)
   TRACE_paje_dump_buffer(1);
 
   //trace my destruction
-  new_pajeDestroyContainer(container);
+  if (!TRACE_disable_destroy()){
+    //do not trace the container destruction if user requests
+    new_pajeDestroyContainer(container);
+  }
 
   //free
   xbt_free (container->name);