diff options
| author | Bob Weinand <bobwei9@hotmail.com> | 2015-07-24 17:17:09 +0200 |
|---|---|---|
| committer | Bob Weinand <bobwei9@hotmail.com> | 2015-07-24 17:17:26 +0200 |
| commit | 13525328ede9db6f8235b4e7f91f7bce80235880 (patch) | |
| tree | 8f41b6e661f9b6e9eca9c93dc4e1690fc4bcf7a5 /Zend/zend_opcode.c | |
| parent | bf1ecbfe168e0f59c0deacbf7f2012c0d36a7f08 (diff) | |
| download | php-git-13525328ede9db6f8235b4e7f91f7bce80235880.tar.gz | |
Cleanup shutdown, enable proper memory leak displaying
phpdbg should not memory leak...
Diffstat (limited to 'Zend/zend_opcode.c')
| -rw-r--r-- | Zend/zend_opcode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c index 90afc6a985..ba952a4867 100644 --- a/Zend/zend_opcode.c +++ b/Zend/zend_opcode.c @@ -343,13 +343,14 @@ ZEND_API zend_bool destroy_op_array(zend_op_array *op_array) if (op_array->static_variables && !(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) { - if (--GC_REFCOUNT(op_array->static_variables) == 0) { + if (--GC_REFCOUNT(op_array->static_variables) == 0) { zend_array_destroy(op_array->static_variables); } } if (op_array->run_time_cache && !op_array->function_name) { efree(op_array->run_time_cache); + op_array->run_time_cache = NULL; } if (!op_array->refcount) { |
