X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/f9520103d3b3a1a36fdb30a46aa4f6c1cd3f1c9e..47061bb488400d53fd20deb52d51763d2caa056e:/unix/uxproxy.c diff --git a/unix/uxproxy.c b/unix/uxproxy.c index aa1ff07a..f808a677 100644 --- a/unix/uxproxy.c +++ b/unix/uxproxy.c @@ -288,6 +288,7 @@ Socket platform_new_connection(SockAddr addr, char *hostname, if (pipe(to_cmd_pipe) < 0 || pipe(from_cmd_pipe) < 0) { ret->error = dupprintf("pipe: %s", strerror(errno)); + sfree(cmd); return (Socket)ret; } cloexec(to_cmd_pipe[1]);