aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-01-14 21:27:35 +0200
committerArnold D. Robbins <arnold@skeeve.com>2019-01-14 21:27:35 +0200
commit6f16c4f468e6f3a6769509e1e70ff2dc4873e8d2 (patch)
treeff3e3cb737950b798cf2668f75cb81269ffaa6e7 /builtin.c
parent99e184df5e808dd4de24b3e41c724bf9b00b9bb4 (diff)
parentfe85aef5cc3e31450c6850c996aa348a68c42ca7 (diff)
downloadegawk-6f16c4f468e6f3a6769509e1e70ff2dc4873e8d2.tar.gz
egawk-6f16c4f468e6f3a6769509e1e70ff2dc4873e8d2.tar.bz2
egawk-6f16c4f468e6f3a6769509e1e70ff2dc4873e8d2.zip
Merge branch 'gawk-4.2-stable'
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin.c b/builtin.c
index 9cf817ac..9a64dde0 100644
--- a/builtin.c
+++ b/builtin.c
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 1986, 1988, 1989, 1991-2018 the Free Software Foundation, Inc.
+ * Copyright (C) 1986, 1988, 1989, 1991-2019 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -4048,11 +4048,13 @@ do_intdiv(int nargs)
lhs = assoc_lookup(result, sub);
unref(*lhs);
*lhs = make_number((AWKNUM) quotient);
+ unref(sub);
sub = make_string("remainder", 9);
lhs = assoc_lookup(result, sub);
unref(*lhs);
*lhs = make_number((AWKNUM) remainder);
+ unref(sub);
DEREF(denominator);
DEREF(numerator);