From: Augustin Degomme Date: Sun, 24 Jun 2018 13:19:02 +0000 (+0200) Subject: leaks --. Maybe X-Git-Tag: v3_21~638 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e75ba902f7af764cbfa89b263912863ba8f6100d leaks --. Maybe --- diff --git a/src/smpi/mpi/smpi_request.cpp b/src/smpi/mpi/smpi_request.cpp index f6ffd0bf78..10c3639918 100644 --- a/src/smpi/mpi/smpi_request.cpp +++ b/src/smpi/mpi/smpi_request.cpp @@ -737,6 +737,9 @@ void Request::finish_wait(MPI_Request* request, MPI_Status * status) if (req->cancelled_==1){ if (status!=MPI_STATUS_IGNORE) status->cancelled=1; + if(req->detached_sender_ != nullptr) + unref(&(req->detached_sender_)); + unref(request); return; }