X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/c16e353eb95120407b78602f0bbaedac57eccf44..53d73c8cfdab8f6826c831fe44ac2a800b33f10d:/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]);