We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 796e11e commit d2bf81fCopy full SHA for d2bf81f
src/win/conpty.cc
@@ -429,6 +429,9 @@ static Napi::Value PtyConnect(const Napi::CallbackInfo& info) {
429
// Update handle
430
handle->hShell = piClient.hProcess;
431
432
+ // Close the thread handle to avoid resource leak
433
+ CloseHandle(piClient.hThread);
434
+
435
SetupExitCallback(env, exitCallback, handle);
436
437
// Return
0 commit comments