X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a0640cb7c160c8fcc32e497b2e0df13db15d6a31..832a679c3195a9d11796dd2918988362b0f4bc70:/src/surf/surf_interface.cpp diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 7d685bf8f5..b13c5ab98c 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -30,7 +30,7 @@ std::vector surf_path; std::vector host_that_restart; /** set of hosts for which one want to be notified if they ever restart. */ std::set watched_hosts; -extern std::map storage_types; +extern std::map storage_types; namespace simgrid { namespace surf { @@ -368,13 +368,10 @@ void surf_exit() sg_host_exit(); sg_link_exit(); for (auto e : storage_types) { - storage_type_t stype = e.second; - free(stype->model); - free(stype->type_id); - free(stype->content); + simgrid::surf::StorageType* stype = e.second; xbt_dict_free(&(stype->properties)); delete stype->model_properties; - free(stype); + delete stype; } for (auto s : *simgrid::surf::StorageImpl::storagesMap()) delete s.second;