1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-03 19:11:41 +00:00

Merge pull request #56763 from GlyphTheWolf/regex-memory-leak-fix

Fix for RegEx.search() memory leak on Windows
This commit is contained in:
Rémi Verschelde
2022-01-14 20:11:00 +01:00
committed by GitHub

View File

@@ -246,6 +246,8 @@ Ref<RegExMatch> RegEx::search(const String &p_subject, int p_offset, int p_end)
if (res < 0) {
pcre2_match_data_free_16(match);
pcre2_match_context_free_16(mctx);
return nullptr;
}