A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix refcounting of smpi::Errhandler.
[simgrid.git]
/
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
e84d07f
..
cf10029
100644
(file)
--- 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;
}