summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-06-23 14:06:48 +0800
committerXinchen Hui <laruence@gmail.com>2016-06-23 14:06:48 +0800
commitbd74e7d0133493ee4290857ac368f5fbdd278084 (patch)
tree27e6ebd634f412de06f4dfd395956f2910fa29cc /ext/pcre/php_pcre.c
parentf90c832cb26336ee779b750d95cc35e5aa79f578 (diff)
downloadphp-git-bd74e7d0133493ee4290857ac368f5fbdd278084.tar.gz
Fixed bug #72476 (Memleak in jit_stack)
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 356b5dc95a..3d59b77005 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -216,7 +216,7 @@ static PHP_MSHUTDOWN_FUNCTION(pcre)
/* {{{ PHP_RINIT_FUNCTION(pcre) */
static PHP_RINIT_FUNCTION(pcre)
{
- if (PCRE_G(jit)) {
+ if (PCRE_G(jit) && jit_stack == NULL) {
jit_stack = pcre_jit_stack_alloc(PCRE_JIT_STACK_MIN_SIZE,PCRE_JIT_STACK_MAX_SIZE);
}