HaxeFoundation / neko

The Neko Virtual Machine
https://nekovm.org
Other
553 stars 107 forks source link

Fix pcre memory leak #262

Closed tobil4sk closed 1 year ago

tobil4sk commented 2 years ago

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: https://github.com/HaxeFoundation/haxe/issues/8829