From 737cb2d24ea61d49f258b2d5f596f43e5e91ba93 Mon Sep 17 00:00:00 2001 From: Tim Kosse Date: Mon, 23 Jan 2017 19:10:40 +0100 Subject: [PATCH] Fix a memory leak in openssh_loadpub The line read from the input file was not freed after successfully loading an OpenSSH key. --- sshpubk.c | 1 + 1 file changed, 1 insertion(+) 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: -- 2.45.1