mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Fixed bug #72476 (Memleak in jit_stack)
This commit is contained in:
parent
f90c832cb2
commit
bd74e7d013
1
NEWS
1
NEWS
@ -13,6 +13,7 @@ PHP NEWS
|
||||
. Fixed bug #72399 (Use-After-Free in MBString (search_re)). (Laruence)
|
||||
|
||||
- PCRE:
|
||||
. Fixed bug #72476 (Memleak in jit_stack). (Laruence)
|
||||
. Fixed bug #72463 (mail fails with invalid argument). (Anatol)
|
||||
|
||||
- Standard:
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user