From: Martin Quinson Date: Thu, 16 Feb 2017 08:55:44 +0000 (+0100) Subject: match new with delete, not with free X-Git-Tag: v3_15~352 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/dfd8237e0cfdac335f6dfe1bf9a6adc868d58dd2 match new with delete, not with free --- diff --git a/src/msg/msg_process.cpp b/src/msg/msg_process.cpp index 1c366886bb..dfc50bfaaf 100644 --- a/src/msg/msg_process.cpp +++ b/src/msg/msg_process.cpp @@ -44,8 +44,7 @@ void MSG_process_cleanup_from_SIMIX(smx_actor_t smx_actor) msg_global->process_data_cleanup(msg_actor->data); } - // free the MSG process - xbt_free(msg_actor); + delete msg_actor; SIMIX_process_cleanup(smx_actor); }