X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/38e2adf74c9fccec6487e953bcb6895b72786dc1..60087ab28ce5450ad32f128cffbb09eb492eb550:/src/simix/smx_process.cpp diff --git a/src/simix/smx_process.cpp b/src/simix/smx_process.cpp index 02daca1a6d..82b4d162a4 100644 --- a/src/simix/smx_process.cpp +++ b/src/simix/smx_process.cpp @@ -81,10 +81,10 @@ void SIMIX_process_cleanup(smx_process_t process) comm->src_proc = NULL; /* I'm not supposed to destroy a detached comm from the sender side, */ - if (!comm->detached) - SIMIX_comm_destroy(comm); + if (comm->detached) + XBT_DEBUG("Don't destroy it since it's a detached comm and I'm the sender"); else - XBT_DEBUG("Don't destroy it since it's a detached comm"); + SIMIX_comm_destroy(comm); } else if (comm->dst_proc == process){