File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1217,7 +1217,7 @@ static void replace_constant_operands(sccp_ctx *ctx) {
1217
1217
1218
1218
/* We iterate the variables backwards, so we can eliminate sequences like INIT_ROPE
1219
1219
* and INIT_ARRAY. */
1220
- for (i = ssa -> vars_count - 1 ; i >= 0 ; i -- ) {
1220
+ for (i = ssa -> vars_count - 1 ; i >= op_array -> last_var ; i -- ) {
1221
1221
zend_ssa_var * var = & ssa -> vars [i ];
1222
1222
zval * value ;
1223
1223
int use ;
@@ -1364,7 +1364,7 @@ static void sccp_context_init(sccp_ctx *ctx,
1364
1364
1365
1365
static void sccp_context_free (sccp_ctx * ctx ) {
1366
1366
int i ;
1367
- for (i = 0 ; i < ctx -> ssa -> vars_count ; ++ i ) {
1367
+ for (i = ctx -> op_array -> last_var ; i < ctx -> ssa -> vars_count ; ++ i ) {
1368
1368
zval_ptr_dtor_nogc (& ctx -> values [i ]);
1369
1369
}
1370
1370
efree (ctx -> values );
You can’t perform that action at this time.
0 commit comments