1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Corey Stup points out a memory leak in the local-proxy implementations.

[originally from svn r8626]
This commit is contained in:
Jacob Nevins 2009-08-21 21:16:22 +00:00
parent eadb18418d
commit 7b8c6957d5
2 changed files with 4 additions and 0 deletions

View File

@ -286,6 +286,8 @@ Socket platform_new_connection(SockAddr addr, char *hostname,
_exit(255);
}
sfree(cmd);
close(to_cmd_pipe[0]);
close(from_cmd_pipe[1]);

View File

@ -199,6 +199,8 @@ Socket platform_new_connection(SockAddr addr, char *hostname,
CREATE_NO_WINDOW | NORMAL_PRIORITY_CLASS,
NULL, NULL, &si, &pi);
sfree(cmd);
CloseHandle(cmd_from_us);
CloseHandle(cmd_to_us);