From 225186cad26aa360f2fec9c5bfebcc960d234344 Mon Sep 17 00:00:00 2001 From: Tim Kosse Date: Fri, 6 Jan 2017 11:44:47 +0100 Subject: [PATCH] Fix memory leak: Free hostkey fingerprint when cross-certifying. --- ssh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh.c b/ssh.c index b09c82a4..7e74fb44 100644 --- a/ssh.c +++ b/ssh.c @@ -7323,6 +7323,7 @@ static void do_ssh2_transport(Ssh ssh, const void *vin, int inlen, s->fingerprint = ssh2_fingerprint(ssh->hostkey, s->hkey); logevent("Storing additional host key for this host:"); logevent(s->fingerprint); + sfree(s->fingerprint); store_host_key(ssh->savedhost, ssh->savedport, ssh->hostkey->keytype, s->keystr); ssh->cross_certifying = FALSE;