From 2ee23472ced0fa6ed065a41489b7fc85c20e3875 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 1 Jan 2019 17:32:08 +0000 Subject: [PATCH] Reinstate a missing free. In commit 869ce8867 I sank an sfree(fingerprint) into an if statement that had previously been before it - but I only put it in two of the three branches of the if. Now added it in the third one, preventing a minor memory leak if you use SSH-1 with the -hostkey option (and the actual host key presented by the server matches it). --- ssh1login.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh1login.c b/ssh1login.c index 790ffa90..0a81e1d9 100644 --- a/ssh1login.c +++ b/ssh1login.c @@ -252,6 +252,7 @@ static void ssh1_login_process_queue(PacketProtocolLayer *ppl) return; } } else { + sfree(fingerprint); sfree(keystr); } }