X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4834cb24245a3a7355ab8586f5177a774c545fb7..274ff3a104711075a837ddc6e677e713b3348354:/src/surf/trace_mgr.cpp diff --git a/src/surf/trace_mgr.cpp b/src/surf/trace_mgr.cpp index d8ea885173..7771715793 100644 --- a/src/surf/trace_mgr.cpp +++ b/src/surf/trace_mgr.cpp @@ -110,7 +110,7 @@ tmgr_trace_t tmgr_trace_new_from_file(const char *filename) xbt_assert(trace_list.find(filename) == trace_list.end(), "Refusing to define trace %s twice", filename); std::ifstream* f = surf_ifsopen(filename); - xbt_assert(!f->fail(), "Cannot open file '%s' (path=%s)", filename, (boost::join(surf_path, ":")).c_str()); + xbt_assert(not f->fail(), "Cannot open file '%s' (path=%s)", filename, (boost::join(surf_path, ":")).c_str()); std::stringstream buffer; buffer << f->rdbuf(); @@ -182,6 +182,7 @@ void tmgr_finalize() xbt_free((char*)kv.first); delete kv.second; } + trace_list.clear(); } void tmgr_trace_event_unref(tmgr_trace_event_t* trace_event)