summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pty/ntapi_pty_fd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pty/ntapi_pty_fd.c b/src/pty/ntapi_pty_fd.c
index b35804e..fdb9ae4 100644
--- a/src/pty/ntapi_pty_fd.c
+++ b/src/pty/ntapi_pty_fd.c
@@ -312,10 +312,8 @@ int32_t __stdcall __ntapi_pty_inherit(
ctx->luid.low = inherit.luid.low;
ctx->luid.high = inherit.luid.high;
- if ((status = __ntapi_pty_connect(hport,ctx,&iosb))) {
- __ntapi_pty_free(ctx);
+ if ((status = __ntapi_pty_connect(hport,ctx,&iosb)))
return status;
- }
if ((status = __ntapi_pty_set(
ctx,&iosb,