From 7ac73ace1ab4e92d5ab4fb56a346ba091648c512 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Fri, 24 Mar 2017 11:44:43 +0100 Subject: [PATCH] plug leak --- examples/simdag/dag-dotload/sd_dag-dotload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.20.1