ovector should not be freed because it points into match_data

This commit is contained in:
2025-11-21 12:56:24 +01:00
parent 27a7582d91
commit 96b966892c

View File

@@ -336,8 +336,6 @@ void Engine::regexp() {
subs[i] = substring_start;
}
free(ovector);
if(config.reverse) {
value = subs[0];
key = subs[1];