1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Fix assorted minor memory leaks.

All found by Coverity.
This commit is contained in:
Simon Tatham
2020-06-16 17:43:36 +01:00
parent 08f1e2a506
commit 44adc8be1b
7 changed files with 16 additions and 5 deletions

View File

@ -29,6 +29,7 @@ Socket *platform_make_agent_socket(
if ((errw = make_dir_and_check_ours(socketdir)) != NULL) {
*error = dupprintf("%s: %s\n", socketdir, errw);
sfree(errw);
sfree(socketdir);
return NULL;
}

View File

@ -490,6 +490,7 @@ static int ssh_sftp_do_select(bool include_stdin, bool no_fds_ok)
if (i < 1 && !no_fds_ok && !toplevel_callback_pending()) {
pollwrap_free(pw);
sfree(fdlist);
return -1; /* doom */
}