From 66c32fe92919cf7ca8ad796794f79bc647bffe1e Mon Sep 17 00:00:00 2001 From: degomme Date: Thu, 21 Apr 2016 11:19:40 +0200 Subject: [PATCH] leaks -- --- src/smpi/smpi_base.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/smpi/smpi_base.cpp b/src/smpi/smpi_base.cpp index cd003cd10a..687a6d83ed 100644 --- a/src/smpi/smpi_base.cpp +++ b/src/smpi/smpi_base.cpp @@ -693,9 +693,9 @@ static void finish_wait(MPI_Request * request, MPI_Status * status) } } smpi_comm_unuse(req->comm); + smpi_datatype_unuse(req->old_type); } - smpi_datatype_unuse(req->old_type); if (TRACE_smpi_view_internals()) { if(req->flags & RECV){ int rank = smpi_process_index(); @@ -705,6 +705,8 @@ static void finish_wait(MPI_Request * request, MPI_Status * status) } if(req->detached_sender!=NULL){ + smpi_datatype_unuse(req->detached_sender->old_type); + smpi_comm_unuse(req->detached_sender->comm); smpi_mpi_request_free(&(req->detached_sender)); } if(req->flags & PERSISTENT) -- 2.20.1