X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/3d88e64dfcf5dc0fd361ce0c504c67a9196ce44c..876eefd49f8857d4e6c87b822fe29d88e9a5230d:/sshdh.c?ds=inline 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. */