From 092fd44474676857359153c859e0cb300720d80a Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 5 Dec 2017 18:32:32 +0100 Subject: Fix use after free revealed by phpdbg --- ext/pcre/php_pcre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 42e577e351..a743f30b04 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -70,7 +70,7 @@ ZEND_TLS pcre_jit_stack *jit_stack = NULL; #if defined(ZTS) && defined(HAVE_PCRE_JIT_SUPPORT) static MUTEX_T pcre_mt = NULL; #define php_pcre_mutex_alloc() if (!pcre_mt) pcre_mt = tsrm_mutex_alloc(); -#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; #define php_pcre_mutex_lock() tsrm_mutex_lock(pcre_mt); #define php_pcre_mutex_unlock() tsrm_mutex_unlock(pcre_mt); #else -- cgit v1.2.1