mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 09:42:25 +00:00
Corey Stup points out a memory leak in the local-proxy implementations.
[originally from svn r8626]
This commit is contained in:
parent
eadb18418d
commit
7b8c6957d5
@ -286,6 +286,8 @@ Socket platform_new_connection(SockAddr addr, char *hostname,
|
|||||||
_exit(255);
|
_exit(255);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sfree(cmd);
|
||||||
|
|
||||||
close(to_cmd_pipe[0]);
|
close(to_cmd_pipe[0]);
|
||||||
close(from_cmd_pipe[1]);
|
close(from_cmd_pipe[1]);
|
||||||
|
|
||||||
|
@ -199,6 +199,8 @@ Socket platform_new_connection(SockAddr addr, char *hostname,
|
|||||||
CREATE_NO_WINDOW | NORMAL_PRIORITY_CLASS,
|
CREATE_NO_WINDOW | NORMAL_PRIORITY_CLASS,
|
||||||
NULL, NULL, &si, &pi);
|
NULL, NULL, &si, &pi);
|
||||||
|
|
||||||
|
sfree(cmd);
|
||||||
|
|
||||||
CloseHandle(cmd_from_us);
|
CloseHandle(cmd_from_us);
|
||||||
CloseHandle(cmd_to_us);
|
CloseHandle(cmd_to_us);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user