Skip to content

Commit b559e66

Browse files
committed
src: add overlooked handle to cleanup
The `Environment::destroy_ids_timer_handle` should be cleaned up by `Environment::CleanupHandles()`. Fix that by adding it to the list. This partially fixes a cctest. Ref: #14206 PR-URL: #14749 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
1 parent 97c4394 commit b559e66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/env.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ void Environment::Start(int argc,
7676
reinterpret_cast<uv_handle_t*>(&idle_check_handle_),
7777
close_and_finish,
7878
nullptr);
79+
RegisterHandleCleanup(
80+
reinterpret_cast<uv_handle_t*>(&destroy_ids_timer_handle_),
81+
close_and_finish,
82+
nullptr);
7983

8084
if (start_profiler_idle_notifier) {
8185
StartProfilerIdleNotifier();

0 commit comments

Comments
 (0)