regparse possible memory leak fix proposal
This commit is contained in:
parent
a3fd24e22e
commit
8cd295ecf0
Notes:
git
2024-09-26 07:34:40 +00:00
@ -6682,7 +6682,10 @@ parse_subexp(Node** top, OnigToken* tok, int term,
|
||||
headp = &(NCDR(*top));
|
||||
while (r == TK_ALT) {
|
||||
r = fetch_token(tok, src, end, env);
|
||||
if (r < 0) return r;
|
||||
if (r < 0) {
|
||||
onig_node_free(node);
|
||||
return r;
|
||||
}
|
||||
r = parse_branch(&node, tok, term, src, end, env);
|
||||
if (r < 0) {
|
||||
onig_node_free(node);
|
||||
|
Loading…
x
Reference in New Issue
Block a user