Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix memory leak.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 7 May 2018 19:33:53 +0000 (21:33 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 7 May 2018 19:33:53 +0000 (21:33 +0200)
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.

tools/graphicator/graphicator.c

index 7074e13..f6ff7d1 100644 (file)
@@ -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;
 }