Skip to content

Commit 776b1ae

Browse files
committed
Careful cleanup
1 parent f987219 commit 776b1ae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,9 +2464,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
24642464
ssa = zend_jit_trace_build_tssa(trace_buffer, parent_trace, exit_num, script, op_arrays, &num_op_arrays);
24652465

24662466
if (!ssa) {
2467-
zend_arena_release(&CG(arena), checkpoint);
2468-
JIT_G(current_trace) = NULL;
2469-
return NULL;
2467+
goto jit_cleanup;
24702468
}
24712469

24722470
/* Register allocation */
@@ -4023,6 +4021,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
40234021
zend_string_release(name);
40244022
}
40254023

4024+
jit_cleanup:
40264025
/* Clenup used op_arrays */
40274026
while (num_op_arrays > 0) {
40284027
op_array = op_arrays[--num_op_arrays];

0 commit comments

Comments
 (0)