]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/winproxy.c
Belatedly update the copyright year to 2013.
[PuTTY.git] / windows / winproxy.c
index 75a785296ac4dba5e294509d33a97799301c7de5..7bbd18f027efdde50ccc9856aecf93cf2b1610ac 100644 (file)
@@ -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;
     }