From: Arnaud Giersch Date: Thu, 5 Dec 2019 12:32:53 +0000 (+0100) Subject: Free dynamically allocated memory. X-Git-Tag: v3.25~336^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e1bd9c56e6a6bc5f0bf6902209e1e668ac274644?hp=c7b7bf80bafbaa4e8918f4ac4608f5f7b202a6b2;ds=sidebyside Free dynamically allocated memory. --- 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;