Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace a function by its contents
[simgrid.git] / src / instr / instr_paje_types.cpp
index 50df528..551e5c4 100644 (file)
@@ -10,16 +10,11 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_paje_types, instr, "Paje tracing event sy
 
 static type_t rootType = nullptr;        /* the root type */
 
-void PJ_type_alloc ()
-{
-}
-
 void PJ_type_release ()
 {
   rootType = nullptr;
 }
 
-
 type_t PJ_type_get_root ()
 {
   return rootType;
@@ -56,7 +51,12 @@ void PJ_type_free (type_t type)
   char *value_name;
   xbt_dict_cursor_t cursor = nullptr;
   xbt_dict_foreach(type->values, cursor, value_name, value) {
-    PJ_value_free (value);
+     XBT_DEBUG("free value %s, child of %s", value->name, value->father->name);
+     xbt_free(value->name);
+     xbt_free(value->color);
+     xbt_free(value->id);
+     xbt_free(value);
+    //PJ_value_free (value);
   }
   xbt_dict_free (&type->values);
   xbt_free (type->name);