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
make sure nothing bad happens here
[simgrid.git]
/
src
/
smpi
/
colls
/
reduce-scatter-gather.c
diff --git
a/src/smpi/colls/reduce-scatter-gather.c
b/src/smpi/colls/reduce-scatter-gather.c
index
24ad911
..
af317fb
100644
(file)
--- a/
src/smpi/colls/reduce-scatter-gather.c
+++ b/
src/smpi/colls/reduce-scatter-gather.c
@@
-216,7
+216,7
@@
int smpi_coll_tuned_reduce_scatter_gather(void *sendbuf, void *recvbuf,
}
}
- else
if (count >= comm_size)
{
+ else
/* (count >= comm_size) */
{
tmp_buf = (void *) xbt_malloc(count * extent);
//if ((rank != root))
tmp_buf = (void *) xbt_malloc(count * extent);
//if ((rank != root))
@@
-387,6
+387,8
@@
int smpi_coll_tuned_reduce_scatter_gather(void *sendbuf, void *recvbuf,
}
}
}
}
}
}
+ if (tmp_buf)
+ free(tmp_buf);
if (cnts)
free(cnts);
if (disps)
if (cnts)
free(cnts);
if (disps)