From 29d805a49eab70cd6144a343605874985db072c2 Mon Sep 17 00:00:00 2001 From: Tim Kosse Date: Mon, 23 Jan 2017 19:04:50 +0100 Subject: [PATCH] Fix a memory leak in rsakey_pubblob The line read from the input file was not freed after successfully loading an SSH1 key. --- sshpubk.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.45.2