X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea02d47c2ee462e84798356e4dda87b1467e22b8..30544ab58b29faec9eefb6be57a0fce5f0d76775:/src/smpi/bindings/smpi_pmpi_type.cpp diff --git a/src/smpi/bindings/smpi_pmpi_type.cpp b/src/smpi/bindings/smpi_pmpi_type.cpp index aac1aed1d4..04208cb9c4 100644 --- a/src/smpi/bindings/smpi_pmpi_type.cpp +++ b/src/smpi/bindings/smpi_pmpi_type.cpp @@ -17,6 +17,7 @@ int PMPI_Type_free(MPI_Datatype * datatype) if (*datatype == MPI_DATATYPE_NULL || (*datatype)->flags() & DT_FLAG_PREDEFINED) { return MPI_ERR_TYPE; } else { + (*datatype)->mark_as_deleted(); simgrid::smpi::Datatype::unref(*datatype); *datatype=MPI_DATATYPE_NULL; return MPI_SUCCESS;