Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Canceled RPC are a pain right now (until we move to a N/1-port model, they are likely...
[simgrid.git] / src / simdag / sd_global.c
index 592a1e8..56eb8b3 100644 (file)
@@ -154,7 +154,7 @@ SD_task_t* SD_simulate(double how_long)
       task = action->data;
       INFO1("Task '%s' done", SD_task_get_name(task));
       __SD_task_set_state(task, SD_DONE);
-      xbt_free(action);
+      surf_workstation_resource->common_public->action_free(action);
       task->surf_action = NULL;
 
       /* the state has changed */
@@ -196,7 +196,7 @@ SD_task_t* SD_simulate(double how_long)
       task = action->data;
       INFO1("Task '%s' failed", SD_task_get_name(task));
       __SD_task_set_state(task, SD_FAILED);
-      xbt_free(action);
+      surf_workstation_resource->common_public->action_free(action);
       task->surf_action = NULL;
 
       if (!task->state_changed) {