From: Martin Quinson Date: Wed, 24 Aug 2016 08:39:15 +0000 (+0200) Subject: match new and delete X-Git-Tag: v3_14~489 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e63dbc224bdb56acaae2aa36c1ac35bfbc1479f2 match new and delete --- diff --git a/src/simix/smx_host.cpp b/src/simix/smx_host.cpp index bf054d5437..8f80f02c70 100644 --- a/src/simix/smx_host.cpp +++ b/src/simix/smx_host.cpp @@ -127,8 +127,7 @@ void SIMIX_host_destroy(void *h) xbt_swag_free(host->process_list); /* Clean host structure */ - free(host); - return; + delete host; } sg_host_t SIMIX_host_self()