Skip to content

Commit d13b3b6

Browse files
committed
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)
2 parents 6faeb95 + bcc5d26 commit d13b3b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/jit/zend_jit_trace.c

+1
Original file line numberDiff line numberDiff line change
@@ -7103,6 +7103,7 @@ static zend_jit_trace_stop zend_jit_compile_root_trace(zend_jit_trace_rec *trace
71037103
if (t->stack_map_size) {
71047104
zend_jit_trace_stack *shared_stack_map = (zend_jit_trace_stack*)zend_shared_alloc(t->stack_map_size * sizeof(zend_jit_trace_stack));
71057105
if (!shared_stack_map) {
7106+
efree(t->stack_map);
71067107
ret = ZEND_JIT_TRACE_STOP_NO_SHM;
71077108
goto exit;
71087109
}

0 commit comments

Comments
 (0)