We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b2b14 commit 092fd44Copy full SHA for 092fd44
ext/pcre/php_pcre.c
@@ -70,7 +70,7 @@ ZEND_TLS pcre_jit_stack *jit_stack = NULL;
70
#if defined(ZTS) && defined(HAVE_PCRE_JIT_SUPPORT)
71
static MUTEX_T pcre_mt = NULL;
72
#define php_pcre_mutex_alloc() if (!pcre_mt) pcre_mt = tsrm_mutex_alloc();
73
-#define php_pcre_mutex_free() if (pcre_mt) tsrm_mutex_free(pcre_mt);
+#define php_pcre_mutex_free() if (pcre_mt) tsrm_mutex_free(pcre_mt); pcre_mt = NULL;
74
#define php_pcre_mutex_lock() tsrm_mutex_lock(pcre_mt);
75
#define php_pcre_mutex_unlock() tsrm_mutex_unlock(pcre_mt);
76
#else
0 commit comments