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.
This commit is contained in:
Brad King
2025-02-11 07:57:42 -05:00
parent b2674f3b38
commit ab8b94986d
+1
View File
@@ -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';