Skip to content

Conversation

@kblaschke
Copy link
Member

If a parsing error was encountered, temporary nodes created in that syntax branch weren't properly free'd. Added %destructor symbols in the parser definition so the generated parser will now correctly clean up those pointers in case of errors.

@kblaschke kblaschke self-assigned this Oct 29, 2025
@kblaschke kblaschke added the bug Something isn't working label Oct 29, 2025
Mainly due to memory leaks being reported happening in case of parsing errors.
Required to clean up temp nodes/values if a parsing error occurs, as some aren't attached to the root node of the compiled expression tree yet.
@kblaschke kblaschke force-pushed the fix-memory-leaks-on-error branch from c4fdaad to 1fda496 Compare October 29, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant