X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/3d88e64dfcf5dc0fd361ce0c504c67a9196ce44c..d686cdbd5f4aa8570a0c18575c703e8cfa32a52d:/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. */