From ab8b94986d6d17190082cc2e72937d2d2934f8c2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 11 Feb 2025 07:57:42 -0500 Subject: Tests: Fix memory leak in CMakeLib.testUVPatches In commit f189e64126 (Tests: Add cases covering our mkdtemp code paths, 2025-02-07) we forgot to close the libuv default loop. --- Tests/CMakeLib/testUVPatches.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/CMakeLib/testUVPatches.cxx b/Tests/CMakeLib/testUVPatches.cxx index 06f8d1f..e5d137b 100644 --- a/Tests/CMakeLib/testUVPatches.cxx +++ b/Tests/CMakeLib/testUVPatches.cxx @@ -28,6 +28,7 @@ static bool test_uv_fs_mkdtemp() ASSERT_EQUAL(r, 0); uv_run(loop, UV_RUN_DEFAULT); uv_fs_req_cleanup(&tempDirReq); + uv_loop_close(loop); if (!cmSystemTools::FileIsDirectory(tempDir)) { std::cout << "cmSystemTools::MakeTempDirectory did not create \"" << tempDir << '\n'; -- cgit v0.12