diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2014-01-19 13:01:40 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2014-01-19 13:01:40 +0100 |
commit | 059d0c5f2e51478289d199299a85a2379522e07d (patch) | |
tree | b343b09304c44108d24bfdc5bcfa1ca29ed41680 /mpq | |
parent | 7e32c6f095b3d7cfb11486fb719ed672db456325 (diff) | |
download | gmp-059d0c5f2e51478289d199299a85a2379522e07d.tar.gz |
Call __gmp_free_func ourselves instead of via mpq_clears.
Diffstat (limited to 'mpq')
-rw-r--r-- | mpq/clears.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mpq/clears.c b/mpq/clears.c index 44deea018..8b4ad9b89 100644 --- a/mpq/clears.c +++ b/mpq/clears.c @@ -1,6 +1,6 @@ /* mpq_clears() -- Clear multiple mpq_t variables. -Copyright 2009 Free Software Foundation, Inc. +Copyright 2009, 2014 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -49,7 +49,10 @@ mpq_clears (va_alist) while (x != NULL) { - mpq_clear (x); + (*__gmp_free_func) (PTR(NUM(x)), + (size_t) ALLOC(NUM(x)) * BYTES_PER_MP_LIMB); + (*__gmp_free_func) (PTR(DEN(x)), + (size_t) ALLOC(DEN(x)) * BYTES_PER_MP_LIMB); x = va_arg (ap, mpq_ptr); } va_end (ap); |