From: suter Date: Thu, 29 Nov 2012 13:24:09 +0000 (+0100) Subject: remove some leaks by calling SD_exit() before dying X-Git-Tag: v3_9_rc1~86^2~251 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c1fce3a7608e9f70779aa9eeeef2e1a310836c2f remove some leaks by calling SD_exit() before dying --- diff --git a/examples/simdag/dot/dot_test.c b/examples/simdag/dot/dot_test.c index 42f661e82f..58addb11a7 100644 --- a/examples/simdag/dot/dot_test.c +++ b/examples/simdag/dot/dot_test.c @@ -50,6 +50,7 @@ int main(int argc, char **argv) /* 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"); } diff --git a/examples/simdag/dot/simulate_dot.c b/examples/simdag/dot/simulate_dot.c index f87bd7f7a3..ff0dd78606 100644 --- a/examples/simdag/dot/simulate_dot.c +++ b/examples/simdag/dot/simulate_dot.c @@ -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){ + SD_exit(); 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 */