]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxproxy.c
Fix another giant batch of resource leaks. (Mostly memory, but there's
[PuTTY.git] / unix / uxproxy.c
index def8a40aad42023368097d514335263b7d1e829a..9dee690e1d9c934c8eabeb97931081450000b39a 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);