mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 13:50:10 -05:00
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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user