Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix tracing tests
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 26 Jul 2017 19:53:58 +0000 (21:53 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 26 Jul 2017 19:54:01 +0000 (21:54 +0200)
This will result in a leak in the tracing::value content, but this is
unavoidable as long as the constructor is not really initializing the
fields but instead initializing the ret field.

src/instr/instr_paje_types.cpp
src/instr/instr_paje_values.cpp

index 389ff98..c93da96 100644 (file)
@@ -52,7 +52,7 @@ void PJ_type_free (type_t type)
   xbt_dict_cursor_t cursor = nullptr;
   xbt_dict_foreach (type->values, cursor, value_name, val) {
     XBT_DEBUG("free value %s, child of %s", val->name, val->father->name);
-    delete val;
+    xbt_free(val);
   }
   xbt_dict_free (&type->values);
   xbt_free (type->name);
index f46eed5..84152ec 100644 (file)
@@ -31,9 +31,11 @@ value::value(const char* name, const char* color, type_t father)
 
 value::~value()
 {
+  /* FIXME: this should be cleanable
   xbt_free(name);
   xbt_free(color);
   xbt_free(id);
+  */
 }
 
 value* value::get_or_new(const char* name, const char* color, type_t father)