Fix for RegEx.search() memory leak on Windows

pull/56763/head
GlyphTheWolf 2022-01-13 20:41:10 +07:00
parent e00a6d2b71
commit 6556442d46
1 changed files with 2 additions and 0 deletions

@ -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;
}