Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
match new and delete
[simgrid.git] / 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()