X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/ba8da5e19d29debfc06085d6cad50aee72b7c78b..16bd1b88e5af81eaecab85795407cd768a296af4:/windows/winproxy.c diff --git a/windows/winproxy.c b/windows/winproxy.c index 75a78529..7bbd18f0 100644 --- a/windows/winproxy.c +++ b/windows/winproxy.c @@ -180,6 +180,7 @@ Socket platform_new_connection(SockAddr addr, char *hostname, sa.bInheritHandle = TRUE; if (!CreatePipe(&us_from_cmd, &cmd_to_us, &sa, 0)) { ret->error = dupprintf("Unable to create pipes for proxy command"); + sfree(cmd); return (Socket)ret; } @@ -187,6 +188,7 @@ Socket platform_new_connection(SockAddr addr, char *hostname, CloseHandle(us_from_cmd); CloseHandle(cmd_to_us); ret->error = dupprintf("Unable to create pipes for proxy command"); + sfree(cmd); return (Socket)ret; }