summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2000-04-21 02:11:25 +0200
committertege <tege@gmplib.org>2000-04-21 02:11:25 +0200
commit55a39a7489135c4a5cfe32871288acf1e77459af (patch)
treeeac15c86912838b476639cc0469ffa282fcec40e
parent686d343fece4a3b08f6ea40716133ab131bf1cd0 (diff)
downloadgmp-55a39a7489135c4a5cfe32871288acf1e77459af.tar.gz
Call mpz_clear for otherwise leaking mpz_t.
-rw-r--r--rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rand.c b/rand.c
index 251854c28..00d740a72 100644
--- a/rand.c
+++ b/rand.c
@@ -116,7 +116,7 @@ gmp_randinit (va_alist)
/* Install scheme. */
mpz_init_set_str (a, sp->astr, 0);
gmp_randinit_lc_2exp (rstate, a, sp->c, sp->m2exp);
-
+ mpz_clear (a);
break;
}