Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix mismatched free() / delete.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 1 Sep 2017 19:39:35 +0000 (21:39 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 1 Sep 2017 19:41:06 +0000 (21:41 +0200)
src/instr/instr_paje_types.cpp

index bfd53c4..8dd65cf 100644 (file)
@@ -57,7 +57,7 @@ void PJ_type_free(simgrid::instr::Type* type)
   xbt_free(type->id_);
   xbt_free(type->color_);
   xbt_dict_free(&type->children_);
-  xbt_free (type);
+  delete type;
   type = nullptr;
 }