Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a verification on gcc version.
[simgrid.git] / examples / simdag / dot / dot_test2.c
index 8ea2f54..b4f4fbd 100644 (file)
@@ -26,7 +26,7 @@ int main(int argc, char **argv)
   SD_init(&argc, argv);
 
   /* Check our arguments */
-  if (argc < 1) {
+  if (argc < 2) {
     INFO1("Usage: %s dot_file", argv[0]);
     exit(1);
   }
@@ -55,7 +55,7 @@ int main(int argc, char **argv)
     SD_task_destroy(task);
   }
 
-  xbt_dynar_free_container(&dot);
+  free(dot_as_array);
 
   /* exit */
   SD_exit();