From fbcb1ef0b087db8758800f8343f35034eb035f52 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Mon, 25 Mar 2019 16:40:04 +0000 Subject: [PATCH] libre2c: free tag history after each step (it's no longer needed). Seems to be a copy-paste error from TDFA implementation, where history for each state is needed until the end of determinization. --- lib/regexec_nfa_posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/regexec_nfa_posix.cc b/lib/regexec_nfa_posix.cc index 64fb2dc8..4d29d8a1 100644 --- a/lib/regexec_nfa_posix.cc +++ b/lib/regexec_nfa_posix.cc @@ -64,7 +64,7 @@ int regexec_nfa_posix(const regex_t *preg, const char *string void closure_posix(psimctx_t &ctx) { - ctx.history.detach(); + ctx.history.init(); if (ctx.flags & REG_GTOP) { closure_posix_gtop(ctx); -- 2.50.1