From: Frederic Suter Date: Fri, 24 Mar 2017 10:44:43 +0000 (+0100) Subject: plug leak X-Git-Tag: v3.16~458 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7ac73ace1ab4e92d5ab4fb56a346ba091648c512?ds=sidebyside plug leak --- diff --git a/examples/simdag/dag-dotload/sd_dag-dotload.c b/examples/simdag/dag-dotload/sd_dag-dotload.c index 11260d929d..24d94fee17 100644 --- a/examples/simdag/dag-dotload/sd_dag-dotload.c +++ b/examples/simdag/dag-dotload/sd_dag-dotload.c @@ -73,7 +73,8 @@ int main(int argc, char **argv) xbt_free(hosts); XBT_INFO("------------------- Run the schedule ---------------------------"); - SD_simulate(-1); + xbt_dynar_t changed_tasks = SD_simulate(-1); + xbt_dynar_free(&changed_tasks); XBT_INFO("------------------- Produce the trace file---------------------------"); XBT_INFO("Producing the trace of the run into %s", basename(tracefilename));