Skip to content

Commit 4273865

Browse files
committed
Drop checkpoint that leaded to use after free
1 parent 9257fa7 commit 4273865

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ext/opcache/Optimizer/zend_optimizer.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,6 @@ int zend_optimize_script(zend_script *script, zend_long optimization_level, zend
13751375
(ZEND_OPTIMIZER_PASS_7 & optimization_level) &&
13761376
zend_build_call_graph(&ctx.arena, script, &call_graph) == SUCCESS) {
13771377
/* Optimize using call-graph */
1378-
void *checkpoint = zend_arena_checkpoint(ctx.arena);
13791378
int i;
13801379
zend_func_info *func_info;
13811380

@@ -1464,8 +1463,6 @@ int zend_optimize_script(zend_script *script, zend_long optimization_level, zend
14641463
for (i = 0; i < call_graph.op_arrays_count; i++) {
14651464
ZEND_SET_FUNC_INFO(call_graph.op_arrays[i], NULL);
14661465
}
1467-
1468-
zend_arena_release(&ctx.arena, checkpoint);
14691466
} else {
14701467
zend_optimize_op_array(&script->main_op_array, &ctx);
14711468

0 commit comments

Comments
 (0)