diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2011-07-02 14:49:03 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2011-07-02 14:49:03 +0400 |
commit | 805f85143e1a85fcc40a5b039f44f07cff0f981a (patch) | |
tree | 05eeb8fb501762b4560b835b1d34dc61d172c47b | |
parent | 56d6ccc17a39361ede9bf1a4d6810690b76cda2b (diff) | |
download | gcd-805f85143e1a85fcc40a5b039f44f07cff0f981a.tar.gz |
Clear temporary integers in gcd2()
-rw-r--r-- | gcd-gmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -20,6 +20,8 @@ void gcd2(mpz_t r, mpz_t a1, mpz_t b1) mpz_set(a, r); /* a = r; */ } mpz_set(r, a); + mpz_clear(a); + mpz_clear(b); } void gcdn(mpz_t r, mpz_t a[], size_t n) |