From e289cf7085f0edda5e5ea253be6806a08abb4777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 23 Dec 2022 11:32:48 +0100 Subject: pcre2: Update to upstream version 10.42 (take two) Changelog: https://github.com/PCRE2Project/pcre2/blob/pcre2-10.42/ChangeLog This fixes support for RISC-V architectures in the sljit library, so we enable the module's compilation for `rv64` too. --- modules/regex/regex.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/regex/regex.cpp') diff --git a/modules/regex/regex.cpp b/modules/regex/regex.cpp index 999a61e11a..8d1e92b4e3 100644 --- a/modules/regex/regex.cpp +++ b/modules/regex/regex.cpp @@ -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 { -- cgit v1.2.3