mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: ext/opcache/jit/zend_jit_trace: fix memory leak in _compile_root_trace() (#10146)
This commit is contained in:
commit
d13b3b6aa7
1 changed files with 1 additions and 0 deletions
|
@ -7103,6 +7103,7 @@ static zend_jit_trace_stop zend_jit_compile_root_trace(zend_jit_trace_rec *trace
|
||||||
if (t->stack_map_size) {
|
if (t->stack_map_size) {
|
||||||
zend_jit_trace_stack *shared_stack_map = (zend_jit_trace_stack*)zend_shared_alloc(t->stack_map_size * sizeof(zend_jit_trace_stack));
|
zend_jit_trace_stack *shared_stack_map = (zend_jit_trace_stack*)zend_shared_alloc(t->stack_map_size * sizeof(zend_jit_trace_stack));
|
||||||
if (!shared_stack_map) {
|
if (!shared_stack_map) {
|
||||||
|
efree(t->stack_map);
|
||||||
ret = ZEND_JIT_TRACE_STOP_NO_SHM;
|
ret = ZEND_JIT_TRACE_STOP_NO_SHM;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue