X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/96b18f4b65694f66c8aea2d702b6f087fdcf9cb7..2983e2d4248b6cdb5c7df3b1bd9b35540e7a32b8:/src/simgrid/host.cpp diff --git a/src/simgrid/host.cpp b/src/simgrid/host.cpp index f3701a734c..fdceaacf89 100644 --- a/src/simgrid/host.cpp +++ b/src/simgrid/host.cpp @@ -18,6 +18,10 @@ extern xbt_dict_t host_list; // FIXME:killme don't dupplicate the content of s4u void sg_host_exit() { + xbt_dict_cursor_t cursor = nullptr; + const char* name = nullptr; + simgrid::s4u::Host* host = nullptr; + xbt_dict_foreach(host_list, cursor, name, host) host->destroy(); xbt_dict_free(&host_list); }