]> granicus.if.org Git - php/commit
Fix memory leaks with FE_RESET upon empty iterator
authorBob Weinand <bobwei9@hotmail.com>
Mon, 28 Nov 2016 22:16:24 +0000 (23:16 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Wed, 30 Nov 2016 16:44:34 +0000 (17:44 +0100)
commit00e516e57549f29387ef858de7847e7e4ca0c1c0
tree76cfa9a8c2f37353dc313eeecd1d453ca88d1f2f
parent9ad9d7ae375a6e8847ceaab287d3d23e0963a06e
Fix memory leaks with FE_RESET upon empty iterator

Solved by manually freeing and jumping to the opcode *after* FE_FREE
Zend/tests/foreach_empty_loop_leak.phpt [new file with mode: 0644]
Zend/zend_compile.c
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
ext/opcache/Optimizer/block_pass.c
ext/opcache/Optimizer/zend_cfg.c