From 544195bff3ba3300d1b34f63777836a1c8d50982 Mon Sep 17 00:00:00 2001 From: graff Date: Sat, 8 Dec 2018 20:08:29 -0600 Subject: [PATCH] arb_mod was incorrectly calling free() instead of arb_free() --- src/modulo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modulo.c b/src/modulo.c index 1146d21..5545e75 100644 --- a/src/modulo.c +++ b/src/modulo.c @@ -13,7 +13,7 @@ fxdpnt *arb_mod(fxdpnt *a, fxdpnt *b, fxdpnt *c, int base, size_t scale) tmp = arb_div(a, b, tmp, base, scale); tmp = arb_mul(tmp, b, tmp, base, newscale); c = arb_sub(a, tmp, c, base); - free(tmp); + arb_free(tmp); return c; }