node-pty 1.1.0-beta23 → 1.1.0-beta24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/win/conpty.cc +3 -0
package/package.json
CHANGED
package/src/win/conpty.cc
CHANGED
|
@@ -429,6 +429,9 @@ static Napi::Value PtyConnect(const Napi::CallbackInfo& info) {
|
|
|
429
429
|
// Update handle
|
|
430
430
|
handle->hShell = piClient.hProcess;
|
|
431
431
|
|
|
432
|
+
// Close the thread handle to avoid resource leak
|
|
433
|
+
CloseHandle(piClient.hThread);
|
|
434
|
+
|
|
432
435
|
SetupExitCallback(env, exitCallback, handle);
|
|
433
436
|
|
|
434
437
|
// Return
|