Skip to content

Commit 3d8fdd5

Browse files
committed
Fixed potential memory leaks
1 parent 0072622 commit 3d8fdd5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ext/opcache/Optimizer/block_pass.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,7 @@ static void assemble_code_blocks(zend_cfg *cfg, zend_op_array *op_array)
937937
opline++;
938938
}
939939
}
940+
free_alloca(map, use_heap);
940941
}
941942

942943
/* adjust early binding list */

ext/opcache/Optimizer/zend_optimizer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ void zend_optimizer_remove_live_range(zend_op_array *op_array, uint32_t var)
380380
opline++;
381381
}
382382
}
383+
free_alloca(map, use_heap);
383384
}
384385
}
385386

0 commit comments

Comments
 (0)