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
cleanup dup_with_info to avoid leaking in some cases
[simgrid.git]
/
src
/
smpi
/
bindings
/
smpi_pmpi_comm.cpp
diff --git
a/src/smpi/bindings/smpi_pmpi_comm.cpp
b/src/smpi/bindings/smpi_pmpi_comm.cpp
index
dc4d87a
..
7291ed2
100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_comm.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_comm.cpp
@@
-113,9
+113,7
@@
int PMPI_Comm_dup_with_info(MPI_Comm comm, MPI_Info info, MPI_Comm * newcomm)
} else if (newcomm == nullptr) {
return MPI_ERR_ARG;
} else {
} else if (newcomm == nullptr) {
return MPI_ERR_ARG;
} else {
- comm->dup(newcomm);
- if(info!=MPI_INFO_NULL)
- (*newcomm)->set_info(info);
+ comm->dup_with_info(info, newcomm);
return MPI_SUCCESS;
}
}
return MPI_SUCCESS;
}
}