X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ff8cc1407a3ae6159a92caa86472cb669062f3bb..7eed757b0efb54a58b781ea4a8c963f0b6321b92:/src/instr/instr_paje_types.cpp diff --git a/src/instr/instr_paje_types.cpp b/src/instr/instr_paje_types.cpp index 494ef42947..daa0d4eaf7 100644 --- a/src/instr/instr_paje_types.cpp +++ b/src/instr/instr_paje_types.cpp @@ -52,10 +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); - xbt_free(val->name); - xbt_free(val->color); - xbt_free(val->id); - xbt_free(val); + delete val; } xbt_dict_free (&type->values); xbt_free (type->name);