/* remove the context of the scheduler from the list of the contexts in use */\r
xbt_swag_remove(maestro_context, context_living);\r
\r
- free(maestro_context);\r
- maestro_context = current_context = NULL;\r
- \r
/* \r
* kill all the contexts in use :\r
* the killed contexts are added in the list of the contexts to destroy\r
/* destroy all contexts in the list of contexts to destroy */\r
xbt_context_empty_trash();\r
\r
+ free(maestro_context);\r
+ maestro_context = current_context = NULL;\r
+ \r
/* destroy the lists */\r
xbt_swag_free(context_to_destroy);\r
xbt_swag_free(context_living);\r