Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Always initialize task->category...
[simgrid.git] / src / instr / sd_instr.c
index 7355762..131efe6 100644 (file)
 
 void TRACE_sd_task_create(SD_task_t task)
 {
-  if (!IS_TRACING)
-    return;
   task->category = NULL;
 }
 
 void TRACE_sd_task_destroy(SD_task_t task)
 {
-  if (!IS_TRACING)
-    return;
-  if (task->category)
-    xbt_free(task->category);
+  xbt_free(task->category);
 }
 
 void TRACE_sd_set_task_category(SD_task_t task, const char *category)