From 70e080cf3328685b295bc8c34a7ddc4bafbbf025 Mon Sep 17 00:00:00 2001 From: suter Date: Wed, 20 Jun 2012 17:28:53 +0200 Subject: [PATCH] don't try to browse a dynar that has been freed --- examples/simdag/dot/dot_test2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/simdag/dot/dot_test2.c b/examples/simdag/dot/dot_test2.c index b9baad1b94..4a5af63c51 100644 --- a/examples/simdag/dot/dot_test2.c +++ b/examples/simdag/dot/dot_test2.c @@ -12,6 +12,7 @@ #include "xbt/log.h" #include "xbt/ex.h" #include +#define HAVE_JEDULE 0 XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Logging specific to this SimDag example"); @@ -49,9 +50,6 @@ int main(int argc, char **argv) ("----------------------------- dump tasks again ------------------------------------"); while ((task=dot_as_array[cursor++])){ SD_task_dump(task); - } - - xbt_dynar_foreach(dot, cursor, task) { SD_task_destroy(task); } -- 2.20.1