From: Tim Kosse Date: Mon, 23 Jan 2017 18:04:50 +0000 (+0100) Subject: Fix a memory leak in rsakey_pubblob X-Git-Tag: 0.68~72 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=29d805a49eab70cd6144a343605874985db072c2;p=PuTTY.git Fix a memory leak in rsakey_pubblob The line read from the input file was not freed after successfully loading an SSH1 key. --- diff --git a/sshpubk.c b/sshpubk.c index a4e4a087..6f7513e2 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); + sfree(line); fclose(fp); return 1;