]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix a memory leak in openssh_loadpub
authorTim Kosse <tim.kosse@filezilla-project.org>
Mon, 23 Jan 2017 18:10:40 +0000 (19:10 +0100)
committerSimon Tatham <anakin@pobox.com>
Sat, 28 Jan 2017 14:03:09 +0000 (14:03 +0000)
The line read from the input file was not freed after successfully
loading an OpenSSH key.

sshpubk.c

index 6f7513e20eabbc19db275ddf4c334920bab6470e..5dacc97d70a329e1ee9235e847ee04cf8d3769a9 100644 (file)
--- 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: