Fix another giant batch of resource leaks. (Mostly memory, but there's
[u/mdw/putty] / unix / uxproxy.c
index def8a40..9dee690 100644 (file)
@@ -297,6 +297,7 @@ Socket platform_new_connection(SockAddr addr, char *hostname,
 
     if (pid < 0) {
        ret->error = dupprintf("fork: %s", strerror(errno));
+        sfree(cmd);
        return (Socket)ret;
     } else if (pid == 0) {
        close(0);