diff options
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |