From e63dbc224bdb56acaae2aa36c1ac35bfbc1479f2 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 24 Aug 2016 10:39:15 +0200 Subject: [PATCH] match new and delete --- src/simix/smx_host.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() -- 2.20.1