X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5970a2578992ed4bc926a2e46efa532015ec4a4d..659ba669d7e5726c70f22d33f62efec4f267f994:/src/simdag/sd_task.c diff --git a/src/simdag/sd_task.c b/src/simdag/sd_task.c index c8961de29e..cf72e8b1a1 100644 --- a/src/simdag/sd_task.c +++ b/src/simdag/sd_task.c @@ -14,6 +14,7 @@ static void __SD_task_destroy_scheduling_data(SD_task_t task); * * \param name the name of the task (can be \c NULL) * \param data the user data you want to associate with the task (can be \c NULL) + * \param amount amount of the task * \return the new task * \see SD_task_destroy() */ @@ -583,6 +584,9 @@ void SD_task_destroy(SD_task_t task) { if (task->name != NULL) xbt_free(task->name); + if (task->surf_action != NULL) + xbt_free(task->surf_action); + xbt_dynar_free(&task->tasks_before); xbt_dynar_free(&task->tasks_after); xbt_free(task);