Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Compute the user code execution time
[simgrid.git] / src / simix / smx_process.c
index 01df49c..070bfc3 100644 (file)
@@ -436,7 +436,7 @@ smx_action_t SIMIX_process_sleep(smx_process_t process, double duration)
 
   action = xbt_mallocator_get(simix_global->action_mallocator);
   action->type = SIMIX_ACTION_SLEEP;
-  action->name = xbt_strdup("sleep");
+  action->name = NULL;
 #ifdef HAVE_TRACING
   action->category = NULL;
 #endif
@@ -481,7 +481,6 @@ void SIMIX_post_process_sleep(smx_action_t action)
 void SIMIX_process_sleep_destroy(smx_action_t action)
 {
   DEBUG1("Destroy action %p", action);
-  xbt_free(action->name);
   if (action->sleep.surf_sleep)
     action->sleep.surf_sleep->model_type->action_unref(action->sleep.surf_sleep);
 #ifdef HAVE_TRACING