From: Mark Wooding Date: Thu, 26 May 2016 08:26:09 +0000 (+0100) Subject: pub/rsa-gen.c: Don't leak `t'. X-Git-Tag: 2.2.4~19 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/commitdiff_plain/1f86efe6525b55705d991cee2ea5c8032b2cfaad pub/rsa-gen.c: Don't leak `t'. --- diff --git a/pub/rsa-gen.c b/pub/rsa-gen.c index 0653d1c3..c9a2da60 100644 --- a/pub/rsa-gen.c +++ b/pub/rsa-gen.c @@ -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;