1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-14 17:47:33 -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;
}