Skip to content

Commit f8b9312

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: ext/opcache/jit/zend_jit_trace: fix memory leak in _compile_root_trace() (#10146)
2 parents b4cbaab + d13b3b6 commit f8b9312

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7104,6 +7104,7 @@ static zend_jit_trace_stop zend_jit_compile_root_trace(zend_jit_trace_rec *trace
71047104
if (t->stack_map_size) {
71057105
zend_jit_trace_stack *shared_stack_map = (zend_jit_trace_stack*)zend_shared_alloc(t->stack_map_size * sizeof(zend_jit_trace_stack));
71067106
if (!shared_stack_map) {
7107+
efree(t->stack_map);
71077108
ret = ZEND_JIT_TRACE_STOP_NO_SHM;
71087109
goto exit;
71097110
}

0 commit comments

Comments
 (0)