aboutsummaryrefslogtreecommitdiffstats
path: root/mpfr.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-01-15 19:54:42 +0200
committerArnold D. Robbins <arnold@skeeve.com>2019-01-15 19:54:42 +0200
commitfa9c6b921f784ad6f35f36b65635969ae4fade2d (patch)
tree4dfb5ec823b1e7dc124e50d153cb86947c4e1ff3 /mpfr.c
parent82a1b8457331ee7fa439d67676ceb68cab017966 (diff)
parent6f16c4f468e6f3a6769509e1e70ff2dc4873e8d2 (diff)
downloadegawk-fa9c6b921f784ad6f35f36b65635969ae4fade2d.tar.gz
egawk-fa9c6b921f784ad6f35f36b65635969ae4fade2d.tar.bz2
egawk-fa9c6b921f784ad6f35f36b65635969ae4fade2d.zip
Merge branch 'master' into feature/assoc_set
Diffstat (limited to 'mpfr.c')
-rw-r--r--mpfr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mpfr.c b/mpfr.c
index 8478570f..c3ba2a6a 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 2012, 2013, 2015, 2017, 2018,
+ * Copyright (C) 2012, 2013, 2015, 2017, 2018, 2019,
* the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
@@ -1265,11 +1265,13 @@ do_mpfr_intdiv(int nargs)
lhs = assoc_lookup(result, sub);
unref(*lhs);
*lhs = quotient;
+ unref(sub);
sub = make_string("remainder", 9);
lhs = assoc_lookup(result, sub);
unref(*lhs);
*lhs = remainder;
+ unref(sub);
return make_number((AWKNUM) 0.0);
}