Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] only call container destruction if we have a hierarchy of them
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 13 Dec 2010 16:44:43 +0000 (16:44 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 13 Dec 2010 16:44:43 +0000 (16:44 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9174 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/instr/instr_routing.c

index 348a4d3..c48bbc5 100644 (file)
@@ -276,7 +276,7 @@ char *instr_host_type (const char *name)
 
 void instr_destroy_platform ()
 {
-  recursiveDestroyContainer (rootContainer);
+  if (rootContainer) recursiveDestroyContainer (rootContainer);
 }
 
 #endif /* HAVE_TRACING */