Skip to content

Commit 8b43976

Browse files
committed
Fixed memory leaks caused by incorrect AVOID_REFCOUNTING flag
1 parent 5f25618 commit 8b43976

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10435,6 +10435,7 @@ static int zend_jit_fetch_dim_read(dasm_State **Dst, const zend_op *opline, cons
1043510435
if ((opline->result_type & (IS_VAR|IS_TMP_VAR))
1043610436
&& (res_info & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE))
1043710437
&& (ssa_op+1)->op1_use == ssa_op->result_def
10438+
&& !(op2_info & ((MAY_BE_ANY|MAY_BE_UNDEF|MAY_BE_REF) - (MAY_BE_STRING|MAY_BE_LONG)))
1043810439
&& zend_jit_may_avoid_refcounting(opline+1)) {
1043910440
res_info |= AVOID_REFCOUNTING;
1044010441
ssa->var_info[ssa_op->result_def].type |= AVOID_REFCOUNTING;

0 commit comments

Comments
 (0)