summaryrefslogtreecommitdiff
path: root/mini-gmp/tests/t-gcd.c
diff options
context:
space:
mode:
authorNiels M?ller <nisse@lysator.liu.se>2013-01-18 21:59:23 +0100
committerNiels M?ller <nisse@lysator.liu.se>2013-01-18 21:59:23 +0100
commita24a3fcc3478407f68459e1a7c61ce72cff8767f (patch)
treefa65b813b2ff74b1b40225f2d26d93cf2ab82fc7 /mini-gmp/tests/t-gcd.c
parent216e8e2ae8986c07aea3b0717bef5efe84b42b9d (diff)
downloadgmp-a24a3fcc3478407f68459e1a7c61ce72cff8767f.tar.gz
mini-gmp: Use custom memory allocation for testsuite.
Diffstat (limited to 'mini-gmp/tests/t-gcd.c')
-rw-r--r--mini-gmp/tests/t-gcd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mini-gmp/tests/t-gcd.c b/mini-gmp/tests/t-gcd.c
index b0e3c83f4..5090b3511 100644
--- a/mini-gmp/tests/t-gcd.c
+++ b/mini-gmp/tests/t-gcd.c
@@ -100,6 +100,11 @@ gcdext_valid_p (const mpz_t a, const mpz_t b,
if (mpz_cmpabs (r, ta) > 0)
return 0;
}
+
+ mpz_clear (ta);
+ mpz_clear (tb);
+ mpz_clear (r);
+
return 1;
}