From: Tim Kosse Date: Mon, 23 Jan 2017 18:10:40 +0000 (+0100) Subject: Fix a memory leak in openssh_loadpub X-Git-Tag: 0.68~71 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=737cb2d24ea61d49f258b2d5f596f43e5e91ba93;p=PuTTY.git Fix a memory leak in openssh_loadpub The line read from the input file was not freed after successfully loading an OpenSSH key. --- diff --git a/sshpubk.c b/sshpubk.c index 6f7513e2..5dacc97d 100644 --- a/sshpubk.c +++ b/sshpubk.c @@ -1091,6 +1091,7 @@ unsigned char *openssh_loadpub(FILE *fp, char **algorithm, *commentptr = comment; else sfree(comment); + sfree(line); return pubblob; error: