X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ae855a0d996d06d373fbc233e78b0fbe7f1f2df6..a889c5815b75beb11f858bab68b2314c8dc724c2:/src/simdag/sd_global.c diff --git a/src/simdag/sd_global.c b/src/simdag/sd_global.c index c24ce295be..29dbf9631e 100644 --- a/src/simdag/sd_global.c +++ b/src/simdag/sd_global.c @@ -410,15 +410,16 @@ void SD_exit(void) xbt_free(sd_global); sd_global = NULL; +#ifdef HAVE_TRACING + TRACE_end(); +#endif + DEBUG0("Exiting Surf..."); surf_exit(); } else { WARN0("SD_exit() called, but SimDag is not running"); /* we cannot use exceptions here because xbt is not running! */ } -#ifdef HAVE_TRACING - TRACE_end(); -#endif } /**