From e1bd9c56e6a6bc5f0bf6902209e1e668ac274644 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 5 Dec 2019 13:32:53 +0100 Subject: [PATCH] Free dynamically allocated memory. --- teshsuite/smpi/mpich3-test/perf/dtpack.c | 1 + teshsuite/smpi/mpich3-test/perf/non_zero_root.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/teshsuite/smpi/mpich3-test/perf/dtpack.c b/teshsuite/smpi/mpich3-test/perf/dtpack.c index f3ccafc23a..029c2a4cf2 100644 --- a/teshsuite/smpi/mpich3-test/perf/dtpack.c +++ b/teshsuite/smpi/mpich3-test/perf/dtpack.c @@ -66,6 +66,7 @@ double noise(double *list, int count) if (retval < 0) retval = -retval; + free(margin); return retval; } diff --git a/teshsuite/smpi/mpich3-test/perf/non_zero_root.c b/teshsuite/smpi/mpich3-test/perf/non_zero_root.c index 0ab6f41fc4..63970c8b32 100644 --- a/teshsuite/smpi/mpich3-test/perf/non_zero_root.c +++ b/teshsuite/smpi/mpich3-test/perf/non_zero_root.c @@ -70,6 +70,8 @@ int main(int argc, char *argv[]) printf(" No Errors\n"); } + free(sbuf); + free(rbuf); MPI_Finalize(); return 0; -- 2.20.1