From: Arnaud Giersch Date: Mon, 7 May 2018 19:33:53 +0000 (+0200) Subject: Fix memory leak. X-Git-Tag: v3.20~271 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/91ded0eab21eb8f9ad9f00447258f4e923d70b5f Fix memory leak. TRACE_end() needs to be called, which is run from simgrid::s4u::on_simulation_end(), called at the end of SIMIX_run(), which is called from MSG_main(). Since MSG_init() is already used, it seems an acceptable choice. --- diff --git a/tools/graphicator/graphicator.c b/tools/graphicator/graphicator.c index 7074e13a3c..f6ff7d169b 100644 --- a/tools/graphicator/graphicator.c +++ b/tools/graphicator/graphicator.c @@ -19,5 +19,6 @@ int main(int argc, char **argv) int status = TRACE_platform_graph_export_graphviz (argv[2]); xbt_assert(status != 0, "%s expects --cfg=tracing:yes --cfg=tracing/platform:yes", argv[0]); + MSG_main(); /* useless, except for correctly cleaning memory */ return 0; }