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
this was fixed too
[simgrid.git]
/
src
/
smpi
/
smpi_pmpi.c
diff --git
a/src/smpi/smpi_pmpi.c
b/src/smpi/smpi_pmpi.c
index
9fde3a0
..
1e4dc07
100644
(file)
--- a/
src/smpi/smpi_pmpi.c
+++ b/
src/smpi/smpi_pmpi.c
@@
-897,9
+897,10
@@
int PMPI_Request_free(MPI_Request * request)
int retval;
smpi_bench_end();
int retval;
smpi_bench_end();
- if (request == MPI_REQUEST_NULL) {
+ if (
*
request == MPI_REQUEST_NULL) {
retval = MPI_ERR_ARG;
} else {
retval = MPI_ERR_ARG;
} else {
+ if((*request)->flags & PERSISTENT)(*request)->refcount--;
smpi_mpi_request_free(request);
retval = MPI_SUCCESS;
}
smpi_mpi_request_free(request);
retval = MPI_SUCCESS;
}