1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 09:12:24 +00:00

Two small memory leaks, also noticed by Martin Prikryl.

[originally from svn r3752]
This commit is contained in:
Simon Tatham 2004-01-21 19:41:34 +00:00
parent b424ea234f
commit a326264500
2 changed files with 2 additions and 0 deletions

1
ssh.c
View File

@ -5198,6 +5198,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, int ispkt)
ssh2_pkt_send(ssh); ssh2_pkt_send(ssh);
s->type = AUTH_TYPE_PUBLICKEY; s->type = AUTH_TYPE_PUBLICKEY;
key->alg->freekey(key->data);
} }
} else if (s->method == AUTH_PASSWORD) { } else if (s->method == AUTH_PASSWORD) {
/* /*

View File

@ -909,6 +909,7 @@ Bignum modinv(Bignum number, Bignum modulus)
x = bigmuladd(q, xp, t); x = bigmuladd(q, xp, t);
sign = -sign; sign = -sign;
freebn(t); freebn(t);
freebn(q);
} }
freebn(b); freebn(b);