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
+2
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;
}