From c810cda64c8d1579426ed53e1e5f2dc51c7224a4 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 8 Feb 2021 10:40:20 -0500 Subject: [PATCH] must free MPI communicators created by MPI_Comm_split() --- unittest/c-library/test_library_open.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittest/c-library/test_library_open.cpp b/unittest/c-library/test_library_open.cpp index d6234c1c04..377f3c53ef 100644 --- a/unittest/c-library/test_library_open.cpp +++ b/unittest/c-library/test_library_open.cpp @@ -72,6 +72,7 @@ TEST(lammps_open, with_args) output = ::testing::internal::GetCapturedStdout(); EXPECT_THAT(output, HasSubstr("Total wall time:")); if (verbose) std::cout << output; + MPI_Comm_free(&mycomm); } TEST(lammps_open, with_kokkos) @@ -195,4 +196,5 @@ TEST(lammps_open_fortran, no_args) output = ::testing::internal::GetCapturedStdout(); EXPECT_THAT(output, HasSubstr("Total wall time:")); if (verbose) std::cout << output; + MPI_Comm_free(&mycomm); }