Make `Copy all to Clipboard' copy all non-empty lines from the
[sgt/putty] / sshdh.c
diff --git a/sshdh.c b/sshdh.c
index 27d5aab..9235183 100644 (file)
--- 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.
      */