Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove some leaks by calling SD_exit() before dying
authorsuter <frederic.suter@cc.in2p3.fr>
Thu, 29 Nov 2012 13:24:09 +0000 (14:24 +0100)
committersuter <frederic.suter@cc.in2p3.fr>
Thu, 29 Nov 2012 13:24:09 +0000 (14:24 +0100)
examples/simdag/dot/dot_test.c
examples/simdag/dot/simulate_dot.c

index 42f661e..58addb1 100644 (file)
@@ -50,6 +50,7 @@ int main(int argc, char **argv)
   /* load the DOT file */
   dot = SD_dotload(argv[2]);
   if(dot == NULL){
   /* load the DOT file */
   dot = SD_dotload(argv[2]);
   if(dot == NULL){
+    SD_exit();
     xbt_die("No dot load may be you have a cycle in your graph");
   }
 
     xbt_die("No dot load may be you have a cycle in your graph");
   }
 
index f87bd7f..ff0dd78 100644 (file)
@@ -50,8 +50,8 @@ int main(int argc, char **argv)
   /* load the DOT file  and schedule tasks */
   dot = SD_dotload_with_sched(argv[2]);
   if(!dot){
   /* load the DOT file  and schedule tasks */
   dot = SD_dotload_with_sched(argv[2]);
   if(!dot){
+    SD_exit();
     xbt_die("The dot file with the provided scheduling is wrong, more information with the option : --log=sd_dotparse.thres:verbose");
     xbt_die("The dot file with the provided scheduling is wrong, more information with the option : --log=sd_dotparse.thres:verbose");
-    //return 0;
   }
 
   /* Display all the tasks */
   }
 
   /* Display all the tasks */