Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
leaks --. Maybe
authorAugustin Degomme <adegomme@users.noreply.github.com>
Sun, 24 Jun 2018 13:19:02 +0000 (15:19 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Sun, 24 Jun 2018 13:19:02 +0000 (15:19 +0200)
src/smpi/mpi/smpi_request.cpp

index f6ffd0b..10c3639 100644 (file)
@@ -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;
   }