1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 19:42:48 -05:00

Fix a few memory leaks.

Patch due to Chris Staite.
This commit is contained in:
Simon Tatham
2015-04-26 10:49:24 +01:00
parent 84e239dd88
commit 78989c97c9
2 changed files with 8 additions and 3 deletions

2
ssh.c
View File

@ -9538,6 +9538,8 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
logevent("Sent public key signature");
s->type = AUTH_TYPE_PUBLICKEY;
key->alg->freekey(key->data);
sfree(key->comment);
sfree(key);
}
#ifndef NO_GSSAPI