From: suter Date: Mon, 22 Oct 2012 13:24:06 +0000 (+0200) Subject: move the xbt_mallocator_release after the free of the tracing stuff. X-Git-Tag: v3_8~24^2~7 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/23499453cb89effd29273e8c6a02defe66d74001?hp=611b2c7233d1714294e9a7d2cf4a92705d89c70a move the xbt_mallocator_release after the free of the tracing stuff. --- diff --git a/src/simdag/sd_task.c b/src/simdag/sd_task.c index c4dc318032..f0cf1c3a96 100644 --- a/src/simdag/sd_task.c +++ b/src/simdag/sd_task.c @@ -239,13 +239,13 @@ void SD_task_destroy(SD_task_t task) xbt_free(task->communication_amount); xbt_free(task->computation_amount); - xbt_mallocator_release(sd_global->task_mallocator,task); - sd_global->task_number--; - #ifdef HAVE_TRACING if (task->category) xbt_free(task->category); #endif + xbt_mallocator_release(sd_global->task_mallocator,task); + sd_global->task_number--; + XBT_DEBUG("Task destroyed."); }