From: Tim Kosse Date: Mon, 23 Jan 2017 17:58:17 +0000 (+0100) Subject: Fix resource leak in rsakey_pubblob X-Git-Tag: 0.68~73 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=8afae2a5f8104b7a898cec40c78687137c8afa18;p=PuTTY.git Fix resource leak in rsakey_pubblob The input file was not closed after successfully loading an SSH1 key. --- diff --git a/sshpubk.c b/sshpubk.c index 0323335e..a4e4a087 100644 --- a/sshpubk.c +++ b/sshpubk.c @@ -309,6 +309,7 @@ int rsakey_pubblob(const Filename *filename, void **blob, int *bloblen, *commentptr = commentp ? dupstr(commentp) : NULL; *blob = rsa_public_blob(&key, bloblen); freersakey(&key); + fclose(fp); return 1; not_public_either: