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 mismatched alloc/free.
[simgrid.git]
/
src
/
smpi
/
colls
/
reduce
/
reduce-mvapich-knomial.cpp
diff --git
a/src/smpi/colls/reduce/reduce-mvapich-knomial.cpp
b/src/smpi/colls/reduce/reduce-mvapich-knomial.cpp
index
1700f75
..
13454c2
100644
(file)
--- a/
src/smpi/colls/reduce/reduce-mvapich-knomial.cpp
+++ b/
src/smpi/colls/reduce/reduce-mvapich-knomial.cpp
@@
-92,7
+92,7
@@
static int MPIR_Reduce_knomial_trace(int root, int reduce_knomial_factor,
/* Finally, fill up the src array */
if(recv_iter > 0) {
/* Finally, fill up the src array */
if(recv_iter > 0) {
-
knomial_reduce_src_array = static_cast<int*>(smpi_get_tmp_sendbuffer(sizeof(int)*recv_iter))
;
+
knomial_reduce_src_array = new int[recv_iter]
;
}
mask = orig_mask;
}
mask = orig_mask;
@@
-211,7
+211,7
@@
int Coll_reduce_mvapich2_knomial::reduce (
}
if(src_array != NULL) {
}
if(src_array != NULL) {
-
xbt_free(src_array)
;
+
delete[] src_array
;
}
if(rank != root) {
}
if(rank != root) {