X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/78cfd86352a4b7097c255e40e8eb98619d515926..55a08c7439db5b0335a5b26e40b3a46e1e03d3e8:/src/surf/surf_interface.cpp diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 05ea270185..624ee5441c 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2020. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -48,7 +48,7 @@ static void XBT_ATTRIB_DESTRUCTOR(800) simgrid_free_plugin_description() XBT_PUBLIC void simgrid_add_plugin_description(const char* name, const char* description, void_f_void_t init_fun) { if (not surf_plugin_description) - surf_plugin_description = new std::vector; + surf_plugin_description = new std::vector(); surf_plugin_description->emplace_back(surf_model_description_t{name, description, init_fun}); } @@ -222,16 +222,13 @@ void surf_init(int *argc, char **argv) xbt_init(argc, argv); sg_config_init(argc, argv); - - if (MC_is_active()) - MC_memory_init(); } void surf_exit() { simgrid::s4u::Engine::shutdown(); for (auto const& e : storage_types) { - simgrid::kernel::resource::StorageType* stype = e.second; + const simgrid::kernel::resource::StorageType* stype = e.second; delete stype->properties; delete stype->model_properties; delete stype;