aboutsummaryrefslogtreecommitdiffstats
path: root/symbol.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-01-19 21:08:52 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-01-19 21:08:52 +0200
commit195f6c171ee765ef7c0bcba5b98ffea15b439882 (patch)
tree259100f8309504e6b3b8b254f727f413f3d13e26 /symbol.c
parent75793ea4b9a82c7aaae712d42c8f4a6370c54944 (diff)
parent5a619e1986724cf8e27b637509925a8da36837e8 (diff)
downloadegawk-195f6c171ee765ef7c0bcba5b98ffea15b439882.tar.gz
egawk-195f6c171ee765ef7c0bcba5b98ffea15b439882.tar.bz2
egawk-195f6c171ee765ef7c0bcba5b98ffea15b439882.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/symbol.c b/symbol.c
index e1504300..65ed4d90 100644
--- a/symbol.c
+++ b/symbol.c
@@ -881,8 +881,10 @@ free_bc_internal(INSTRUCTION *cp)
case Op_match:
case Op_nomatch:
m = cp->memory;
- if (m->re_reg != NULL)
- refree(m->re_reg);
+ if (m->re_reg[0] != NULL)
+ refree(m->re_reg[0]);
+ if (m->re_reg[1] != NULL)
+ refree(m->re_reg[1]);
if (m->re_exp != NULL)
unref(m->re_exp);
if (m->re_text != NULL)