Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2022-09-07 15:52:58 +0300
committerSimon Tatham <anakin@pobox.com>2022-09-07 16:28:52 +0300
commit1f6d93f0c87a478e10591960e71fe9dce0a0ecf0 (patch)
tree5cebff6d8436bbb12d3808bf532c5dadd1d795de /windows/puttygen.c
parent16d5bb726972df6b5329aa1654f649c0dce31ef0 (diff)
Fix a batch of resource leaks spotted by Coverity.
Diffstat (limited to 'windows/puttygen.c')
-rw-r--r--windows/puttygen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/windows/puttygen.c b/windows/puttygen.c
index 52b1a9cb..143e7b5f 100644
--- a/windows/puttygen.c
+++ b/windows/puttygen.c
@@ -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;
}