mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-11 23:43:58 +03: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:
1 parent
b2674f3b38
commit
ab8b94986d
1 file changed
+1
@@ -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