Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new variable for surf_action_t to contain its tracing category
[simgrid.git] / src / surf / network_gtnets.c
index 7076f77..ea448bd 100644 (file)
@@ -179,6 +179,9 @@ static int action_unref(surf_action_t action)
   action->refcount--;
   if (!action->refcount) {
     xbt_swag_remove(action, action->state_set);
+#ifdef HAVE_TRACING
+    if (action->category) xbt_free (action->category);
+#endif
     free(action);
     return 1;
   }