From e75ba902f7af764cbfa89b263912863ba8f6100d Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Sun, 24 Jun 2018 15:19:02 +0200 Subject: [PATCH] leaks --. Maybe --- src/smpi/mpi/smpi_request.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.20.1