diff options
author | midipix <writeonce@midipix.org> | 2017-01-06 03:23:42 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-01-07 09:02:22 -0500 |
commit | 3a85e17c465838aecef252d2929afe6921b787fe (patch) | |
tree | b76d53a8933ec08cb0fe42b9f173547569d7b5b9 /src | |
parent | 47aaf28e9060c837e3c0d3a7ac009c434f95eda7 (diff) | |
download | ntapi-3a85e17c465838aecef252d2929afe6921b787fe.tar.bz2 ntapi-3a85e17c465838aecef252d2929afe6921b787fe.tar.xz |
__ntapi_pty_inherit(): do not repeat __ntapi_pty_free() upon failure.
Diffstat (limited to 'src')
-rw-r--r-- | src/pty/ntapi_pty_fd.c | 4 |
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, |