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

Fix a batch of resource leaks spotted by Coverity.

This commit is contained in:
Simon Tatham
2022-09-07 13:52:58 +01:00
parent 16d5bb7269
commit 1f6d93f0c8
4 changed files with 12 additions and 2 deletions

View File

@ -1256,6 +1256,7 @@ void add_certificate(HWND hwnd, struct MainDlgState *state,
message_box(hwnd, msg, "PuTTYgen Error", MB_OK | MB_ICONERROR,
HELPCTXID(errors_cantloadkey));
sfree(msg);
strbuf_free(pub);
return;
}