diff options
Diffstat (limited to 'mpq/clear.c')
-rw-r--r-- | mpq/clear.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpq/clear.c b/mpq/clear.c index c5baa77f4..89c7933c6 100644 --- a/mpq/clear.c +++ b/mpq/clear.c @@ -35,5 +35,6 @@ mpq_clear (mpq_t x) { if (ALLOC (NUM(x))) __GMP_FREE_FUNC_LIMBS (PTR(NUM(x)), ALLOC(NUM(x))); - __GMP_FREE_FUNC_LIMBS (PTR(DEN(x)), ALLOC(DEN(x))); + if (ALLOC (DEN(x))) + __GMP_FREE_FUNC_LIMBS (PTR(DEN(x)), ALLOC(DEN(x))); } |