aboutsummaryrefslogtreecommitdiffstats
path: root/mpfr.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-07-31 19:50:06 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-07-31 19:50:06 +0300
commit54146e27c8fd7756a944d0e168aa969624567b55 (patch)
tree2fab7e830201164a2d152b7b149c093b5be5e0e4 /mpfr.c
parente3f18c6702e67aabd90edea58a4edcc5d0495fdf (diff)
downloadegawk-54146e27c8fd7756a944d0e168aa969624567b55.tar.gz
egawk-54146e27c8fd7756a944d0e168aa969624567b55.tar.bz2
egawk-54146e27c8fd7756a944d0e168aa969624567b55.zip
Fix memory leak in do_mpfr_div.
Diffstat (limited to 'mpfr.c')
-rw-r--r--mpfr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpfr.c b/mpfr.c
index 3c7cb5d8..52247978 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -1248,6 +1248,8 @@ do_mpfr_div(int nargs)
mpz_tdiv_qr(quotient->mpg_i, remainder->mpg_i, num->mpg_i, denom->mpg_i);
unref(num);
unref(denom);
+ unref(numerator);
+ unref(denominator);
sub = make_string("quotient", 8);
lhs = assoc_lookup(result, sub);