X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e2d72ea4851a108ca87a7f3294431a9141317b25..2c4d8c756e13c86df7dd3dd60be1a4d984aad999:/src/msg/msg_process.c diff --git a/src/msg/msg_process.c b/src/msg/msg_process.c index a14e8828be..927a4a982f 100644 --- a/src/msg/msg_process.c +++ b/src/msg/msg_process.c @@ -53,6 +53,7 @@ void MSG_process_cleanup_from_SIMIX(smx_process_t smx_proc) // free the MSG process xbt_free(msg_proc); + SIMIX_process_cleanup(smx_proc); } /* This function creates a MSG process. It has the prototype enforced by SIMIX_function_register_process_create */ @@ -293,7 +294,7 @@ msg_host_t MSG_process_get_host(msg_process_t process) else { simdata = simcall_process_get_data(process); } - return simdata->m_host; + return simdata ? simdata->m_host : NULL; } /** \ingroup m_process_management