From: schnorr Date: Mon, 13 Dec 2010 16:44:43 +0000 (+0000) Subject: [trace] only call container destruction if we have a hierarchy of them X-Git-Tag: v3.6_beta2~749 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/693a055f04e0a86dbb3f1517edc34238a38183aa [trace] only call container destruction if we have a hierarchy of them git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9174 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/instr/instr_routing.c b/src/instr/instr_routing.c index 348a4d3cfa..c48bbc586c 100644 --- a/src/instr/instr_routing.c +++ b/src/instr/instr_routing.c @@ -276,7 +276,7 @@ char *instr_host_type (const char *name) void instr_destroy_platform () { - recursiveDestroyContainer (rootContainer); + if (rootContainer) recursiveDestroyContainer (rootContainer); } #endif /* HAVE_TRACING */