From d0fe741b6ac2a83113f956d843effcc0292e8402 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 4 Jun 1997 18:02:02 +0200
Subject: [PATCH] * modules/Gmp/mpz_glue.c (get_mpz_from_digits): Fixed small
 memory leak.

Rev: src/modules/Gmp/mpz_glue.c:1.19
---
 src/modules/Gmp/mpz_glue.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/Gmp/mpz_glue.c b/src/modules/Gmp/mpz_glue.c
index 1ed2123be9..cd307cd2bc 100644
--- a/src/modules/Gmp/mpz_glue.c
+++ b/src/modules/Gmp/mpz_glue.c
@@ -4,7 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
-RCSID("$Id: mpz_glue.c,v 1.18 1997/05/19 22:48:54 hubbe Exp $");
+RCSID("$Id: mpz_glue.c,v 1.19 1997/06/04 16:02:02 nisse Exp $");
 #include "gmp_machine.h"
 
 #if !defined(HAVE_LIBGMP)
@@ -59,6 +59,7 @@ static void get_mpz_from_digits(MP_INT *tmp,
       mpz_mul_2exp(digit, digit, (digits->len - i - 1) * 8);
       mpz_ior(tmp, tmp, digit);
     }
+    mpz_clear(digit);
   }
   else
   {
-- 
GitLab