1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Fix a couple of memory leaks pointed out by Adam Bernstein.

[originally from svn r3262]
This commit is contained in:
Ben Harris
2003-06-14 18:27:10 +00:00
parent a4d89d1d3e
commit 3006ebf15c
2 changed files with 6 additions and 1 deletions

View File

@ -140,6 +140,8 @@ Bignum dh_create_e(void *handle, int nbits)
}
} while (bignum_cmp(ctx->x, One) <= 0 || bignum_cmp(ctx->x, ctx->q) >= 0);
sfree(buf);
/*
* Done. Now compute e = g^x mod p.
*/