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
5101c7e
..
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) {
}
if (total_count == 0) {
+ xbt_free(disps);
return MPI_ERR_COUNT;
}
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);
}
if (mpi_errno) return(mpi_errno);
}
-return MPI_SUCCESS;
+ xbt_free(disps);
+ xbt_free(tmp_recvbuf);
+
+ return MPI_SUCCESS;
}
}
@@
-263,7
+267,7
@@
int smpi_coll_tuned_reduce_scatter_mpich_rdb(void *sendbuf, void *recvbuf, int r
int mask, dst_tree_root, my_tree_root, j, k;
int received;
MPI_Datatype sendtype, recvtype;
int mask, dst_tree_root, my_tree_root, j, k;
int received;
MPI_Datatype sendtype, recvtype;
- int nprocs_completed, tmp_mask, tree_root, is_commutative;
+ int nprocs_completed, tmp_mask, tree_root, is_commutative
=0
;
comm_size = smpi_comm_size(comm);
rank = smpi_comm_rank(comm);
comm_size = smpi_comm_size(comm);
rank = smpi_comm_rank(comm);