diff --git a/src/spawn_sync.cc b/src/spawn_sync.cc index de0d180e3b6..4876422bda1 100644 --- a/src/spawn_sync.cc +++ b/src/spawn_sync.cc @@ -1025,6 +1025,7 @@ void SyncProcessRunner::ExitCallback(uv_process_t* handle, int64_t exit_status, int term_signal) { SyncProcessRunner* self = reinterpret_cast(handle->data); + uv_close(reinterpret_cast(handle), NULL); self->OnExit(exit_status, term_signal); }