From a81843f57af4c4d5b2bebd98d6a32a503f6d467d Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Tue, 24 Sep 2013 14:36:34 +0200 Subject: [PATCH] test leak -- --- teshsuite/smpi/scatter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/teshsuite/smpi/scatter.c b/teshsuite/smpi/scatter.c index e4a63037e5..50cec08553 100644 --- a/teshsuite/smpi/scatter.c +++ b/teshsuite/smpi/scatter.c @@ -87,6 +87,9 @@ static int small_test(int rank, int size) retval = MPI_Scatter(sndbuf, sendcount, MPI_DOUBLE, &rcvd, recvcount, MPI_DOUBLE, root, MPI_COMM_WORLD); + if (root == rank) { + free(sndbuf); + } if (retval != MPI_SUCCESS) { fprintf(stderr, "(%s:%d) MPI_Scatter() returned retval=%d\n", __FILE__, __LINE__, retval); -- 2.20.1