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
memleaks --
[simgrid.git]
/
src
/
smpi
/
colls
/
reduce_scatter-mpich.c
diff --git
a/src/smpi/colls/reduce_scatter-mpich.c
b/src/smpi/colls/reduce_scatter-mpich.c
index
8fb8342
..
586142b
100644
(file)
--- a/
src/smpi/colls/reduce_scatter-mpich.c
+++ b/
src/smpi/colls/reduce_scatter-mpich.c
@@
-45,6
+45,7
@@
int smpi_coll_tuned_reduce_scatter_mpich_pair(void *sendbuf, void *recvbuf, int
}
if (total_count == 0) {
+ xbt_free(disps);
return MPI_ERR_COUNT;
}
@@
-134,7
+135,10
@@
int smpi_coll_tuned_reduce_scatter_mpich_pair(void *sendbuf, void *recvbuf, int
if (mpi_errno) return(mpi_errno);
}
-return MPI_SUCCESS;
+ xbt_free(disps);
+ xbt_free(tmp_recvbuf);
+
+ return MPI_SUCCESS;
}