chiark / gitweb /
pub/rsa-gen.c: Don't leak `t'.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 25 Jun 2016 13:09:38 +0000 (14:09 +0100)
pub/rsa-gen.c

index 0653d1c3b2dafaf1bd2ca1b9eaadf0282e518790..c9a2da604a459e62560bbde0ff824b93a378f293 100644 (file)
@@ -95,6 +95,7 @@ again:
     mp_div(&t, &u, t, rp->p);
     if (!MP_ZEROP(u)) t = mp_add(t, t, MP_ONE);
     if (MP_CMP(q, <, t)) q = mp_leastcongruent(q, t, q, g.jp.m);
+    mp_drop(t);
 
     g.r = mp_lsr(MP_NEW, rp->p, 1);
     g.g = MP_NEW;