From: suter Date: Thu, 29 Nov 2012 12:35:48 +0000 (+0100) Subject: clean stuff even when the scheduled is not good X-Git-Tag: v3_9_rc1~86^2~252 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/da12e59545f3a14d0aaae10b9a6462adce8ff5ba?ds=inline clean stuff even when the scheduled is not good --- diff --git a/src/simdag/sd_dotloader.c b/src/simdag/sd_dotloader.c index 9402eaa366..5faa6c4c2d 100644 --- a/src/simdag/sd_dotloader.c +++ b/src/simdag/sd_dotloader.c @@ -161,6 +161,18 @@ xbt_dynar_t SD_dotload_with_sched(const char *filename){ }else{ XBT_WARN("The scheduling is ignored"); } + SD_task_t task; + unsigned int count; + xbt_dynar_t computer = NULL; + xbt_dict_cursor_t dict_cursor; + char *computer_name; + xbt_dict_foreach(computers,dict_cursor,computer_name,computer){ + xbt_dynar_free(&computer); + } + xbt_dict_free(&computers); + xbt_dynar_foreach(result,count,task){ + SD_task_destroy(task); + } return NULL; }