Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
match new and delete
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 24 Aug 2016 08:39:15 +0000 (10:39 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 24 Aug 2016 08:39:15 +0000 (10:39 +0200)
src/simix/smx_host.cpp

index bf054d5..8f80f02 100644 (file)
@@ -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()