aboutsummaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'match.c')
-rw-r--r--match.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/match.c b/match.c
index 2252fc3..8231fc0 100644
--- a/match.c
+++ b/match.c
@@ -667,7 +667,9 @@ static match_t *match(match_ctx_t *ctx, const char *str, pat_t *pat)
while (1) {
const char *prev = m->end;
rec_op.args.leftrec.match = m;
+ ctx2.cache = &(cache_t){0};
match_t *m2 = match(&ctx2, str, ref);
+ cache_destroy(&ctx2);
if (!m2) break;
if (m2->end <= prev) {
recycle_match(&m2);