Skip to content

Commit 39774e1

Browse files
committed
JIT: Fix memory leak in ext/ffi/tests/032.phpt
1 parent a03cb13 commit 39774e1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/opcache/jit/zend_jit_ir.c

+6
Original file line numberDiff line numberDiff line change
@@ -12503,6 +12503,12 @@ static int zend_jit_ffi_fetch_dim_read(zend_jit_ctx *jit,
1250312503
ssa->var_info[ssa_op->result_def].type &= ~MAY_BE_GUARD;
1250412504
}
1250512505

12506+
if (opline->opcode != ZEND_FETCH_LIST_R && !op1_avoid_refcounting) {
12507+
if (opline->op1_type & (IS_TMP_VAR|IS_VAR)) {
12508+
jit_FREE_OP(jit, opline->op1_type, opline->op1, op1_info, opline);
12509+
}
12510+
}
12511+
1250612512
return 1;
1250712513
}
1250812514
#endif

0 commit comments

Comments
 (0)