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-ompi.cpp
diff --git
a/src/smpi/colls/reduce/reduce-ompi.cpp
b/src/smpi/colls/reduce/reduce-ompi.cpp
index
855a81f
..
d6f2a85
100644
(file)
--- a/
src/smpi/colls/reduce/reduce-ompi.cpp
+++ b/
src/smpi/colls/reduce/reduce-ompi.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2013-201
8
. The SimGrid Team.
+/* Copyright (c) 2013-201
9
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-309,9
+309,9
@@
int smpi_coll_tuned_ompi_reduce_generic( void* sendbuf, void* recvbuf, int origi
error_hndl: /* error handler */
XBT_DEBUG("ERROR_HNDL: node %d file %s line %d error %d\n",
rank, __FILE__, line, ret );
error_hndl: /* error handler */
XBT_DEBUG("ERROR_HNDL: node %d file %s line %d error %d\n",
rank, __FILE__, line, ret );
-
if( inbuf_free[0] != NULL ) free
(inbuf_free[0]);
-
if( inbuf_free[1] != NULL ) free
(inbuf_free[1]);
-
if( accumbuf_free != NULL ) free
(accumbuf);
+
smpi_free_tmp_buffer
(inbuf_free[0]);
+
smpi_free_tmp_buffer
(inbuf_free[1]);
+
smpi_free_tmp_buffer
(accumbuf);
return ret;
}
return ret;
}