1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-09 23:33:46 -05:00

Fix a few memory leaks.

Patch due to Chris Staite.

(cherry picked from commit 78989c97c9)
This commit is contained in:
Simon Tatham
2015-04-26 10:49:24 +01:00
parent 51ee4eb144
commit 9bcb6639cc
2 changed files with 8 additions and 3 deletions

2
ssh.c
View File

@ -9458,6 +9458,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