Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Exit cleanly on error.
[simgrid.git] / examples / simdag / dot / dot_test2.c
index b893634..ea5a4c7 100644 (file)
@@ -1,6 +1,6 @@
 /* simple test trying to load a DOT file.                                   */
 
-/* Copyright (c) 2010. The SimGrid Team.
+/* Copyright (c) 2010-2012. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -49,6 +49,10 @@ int main(int argc, char **argv)
       ("----------------------------- dump tasks again ------------------------------------");
   while ((task=dot_as_array[cursor++])){
     SD_task_dump(task);
+  }
+
+  cursor=0;
+  while ((task=dot_as_array[cursor++])){
     SD_task_destroy(task);
   }