1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Fix another giant batch of resource leaks. (Mostly memory, but there's

one missing fclose too.)

[originally from svn r9919]
This commit is contained in:
Simon Tatham
2013-07-14 10:46:07 +00:00
parent 896bb7c74d
commit ea301bdd9b
20 changed files with 70 additions and 19 deletions

View File

@ -289,6 +289,8 @@ static int dss_verifysig(void *key, char *sig, int siglen,
freebn(w);
freebn(sha);
freebn(u1);
freebn(u2);
freebn(gu1p);
freebn(yu2p);
freebn(gu1yu2p);
@ -404,6 +406,7 @@ static void *dss_createkey(unsigned char *pub_blob, int pub_len,
ytest = modpow(dss->g, dss->x, dss->p);
if (0 != bignum_cmp(ytest, dss->y)) {
dss_freekey(dss);
freebn(ytest);
return NULL;
}
freebn(ytest);