From: Ulya Trofimovich Date: Mon, 25 Mar 2019 16:40:04 +0000 (+0000) Subject: libre2c: free tag history after each step (it's no longer needed). X-Git-Tag: 1.2~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbcb1ef0b087db8758800f8343f35034eb035f52;p=re2c 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. --- 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);