Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pcre memory leak #262

Merged
merged 2 commits into from
Mar 26, 2023
Merged

Fix pcre memory leak #262

merged 2 commits into from
Mar 26, 2023

Conversation

tobil4sk
Copy link
Member

@tobil4sk tobil4sk commented May 8, 2022

This was technically a memory leak introduced in #249, although, the structure was allocated once and required throughout the lifetime of the program. However, the context is not really needed at all anymore. Since pcre 10.30, pcre2_match no longer uses recursive function calls, so this setting should no longer be needed.

See HaxeFoundation/hashlink/pull/515

This also fixes: HaxeFoundation/haxe#8829

The context is not needed as the default depth limit is fine.

Since pcre 10.30, pcre2_match no longer uses recursive function calls,
so this setting should no longer be needed.
@Simn Simn merged commit 84a45ee into HaxeFoundation:master Mar 26, 2023
@tobil4sk tobil4sk deleted the fix-pcre branch March 26, 2023 12:52
andyli pushed a commit that referenced this pull request Jul 4, 2023
* Fix memory leak

The context is not needed as the default depth limit is fine.

Since pcre 10.30, pcre2_match no longer uses recursive function calls,
so this setting should no longer be needed.

* Clean up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

regexp not working in neko with haxe 4.0.0-rc.5
2 participants