X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2f3c9cf811c7c608eb49a3ee14411a887b6a99c8..3ae3a4b85d0ac22efcbb06529150e90521008c9e:/src/smpi/bindings/smpi_pmpi_file.cpp diff --git a/src/smpi/bindings/smpi_pmpi_file.cpp b/src/smpi/bindings/smpi_pmpi_file.cpp index e84d07fc7c..cf10029cbd 100644 --- a/src/smpi/bindings/smpi_pmpi_file.cpp +++ b/src/smpi/bindings/smpi_pmpi_file.cpp @@ -369,6 +369,8 @@ int PMPI_File_call_errhandler(MPI_File file,int errorcode){ if (file == nullptr) { return MPI_ERR_WIN; } - file->errhandler()->call(file, errorcode); + MPI_Errhandler err = file->errhandler(); + err->call(file, errorcode); + simgrid::smpi::Errhandler::unref(err); return MPI_SUCCESS; }