mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
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).
This commit is contained in:
parent
a718881af8
commit
2ee23472ce
@ -252,6 +252,7 @@ static void ssh1_login_process_queue(PacketProtocolLayer *ppl)
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
sfree(fingerprint);
|
||||
sfree(keystr);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user