Fixes #76174.
@@ -40,7 +40,9 @@ static void *_regex_malloc(PCRE2_SIZE size, void *user) {
}
static void _regex_free(void *ptr, void *user) {
- memfree(ptr);
+ if (ptr) {
+ memfree(ptr);
+ }
int RegExMatch::_find(const Variant &p_name) const {