There was an error while loading. Please reload this page.
2 parents da3f725 + 290db4a commit 11df2a8Copy full SHA for 11df2a8
1 file changed
modules/regex/regex.cpp
@@ -40,7 +40,9 @@ static void *_regex_malloc(PCRE2_SIZE size, void *user) {
40
}
41
42
static void _regex_free(void *ptr, void *user) {
43
- memfree(ptr);
+ if (ptr) {
44
+ memfree(ptr);
45
+ }
46
47
48
int RegExMatch::_find(const Variant &p_name) const {
0 commit comments