X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/688f90a0495a7879e531d100645ecdf9efe47b94..5d3cd01db4d6a80961d0189d02094491d272c982:/src/smpi/mpi/smpi_request.cpp diff --git a/src/smpi/mpi/smpi_request.cpp b/src/smpi/mpi/smpi_request.cpp index 4d282ae873..7812f96a1e 100644 --- a/src/smpi/mpi/smpi_request.cpp +++ b/src/smpi/mpi/smpi_request.cpp @@ -855,18 +855,15 @@ void Request::finish_wait(MPI_Request* request, MPI_Status * status) // This part handles the problem of non-contiguous memory the unserialization at the reception if ((req->flags_ & MPI_REQ_RECV) && datatype->size() != 0) datatype->unserialize(req->buf_, req->old_buf_, req->real_size_/datatype->size() , req->op_); - if(req->flags_ & MPI_REQ_NON_PERSISTENT){ - xbt_free(req->buf_); - req->buf_=nullptr; - } + xbt_free(req->buf_); + req->buf_=nullptr; } else if (req->flags_ & MPI_REQ_RECV) { // apply op on contiguous buffer for accumulate if (datatype->size() != 0) { int n = req->real_size_ / datatype->size(); req->op_->apply(req->buf_, req->old_buf_, &n, datatype); } - if(req->flags_ & MPI_REQ_NON_PERSISTENT) - xbt_free(req->buf_); - req->buf_=nullptr; + xbt_free(req->buf_); + req->buf_=nullptr; } } }