X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/3d88e64dfcf5dc0fd361ce0c504c67a9196ce44c..df0870fc8ceb5a8fea66a4d0fe00e7db12317e33:/sshdh.c diff --git a/sshdh.c b/sshdh.c index 27d5aab5..92351832 100644 --- a/sshdh.c +++ b/sshdh.c @@ -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. */