aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/interpret.h b/interpret.h
index 3215833e..6cfff3a6 100644
--- a/interpret.h
+++ b/interpret.h
@@ -1065,6 +1065,10 @@ match_re:
if (op != Op_match_rec) {
decr_sp();
DEREF(t1);
+ if (m->type == Node_dynregex) {
+ DEREF(m->re_exp);
+ m->re_exp = NULL;
+ }
}
r = node_Boolean[di];
UPREF(r);