From c4cdeabf4b603af7b21a2eb297318f83863fd208 Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Wed, 31 Oct 2018 11:02:15 +0100 Subject: [PATCH] clean up memory in test. --- tests/testParallelMpiWaitany.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/testParallelMpiWaitany.c b/tests/testParallelMpiWaitany.c index 51a9d4a8ed..7ae393c240 100644 --- a/tests/testParallelMpiWaitany.c +++ b/tests/testParallelMpiWaitany.c @@ -45,9 +45,6 @@ void *thread_func(void *data_in) { } int main(int argc, char **argv) { - // Number of threads per rank. - const int num_threads_per_rank = 10; - // Initialize the MPI environment. MPI_Init(NULL, NULL); @@ -106,6 +103,10 @@ int main(int argc, char **argv) { // Just to be sure, make sure the sends are all done. MPI_Waitall(num_ranks, requests_out, MPI_STATUSES_IGNORE); + // Clean up allocated memory. + free(data_in); + free(data_out); + // Finalize the MPI environment. MPI_Finalize(); printf("Rank %02i is done.\n", rank); -- GitLab