diff options
| author | Marcus Boerger <helly@php.net> | 2003-08-03 22:28:14 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2003-08-03 22:28:14 +0000 |
| commit | 1f8fd69e781ad7d1b57bca825a7709051a81594f (patch) | |
| tree | d12c965f92260859c48c1fb95e7ceca3f2d3b350 /Zend/zend_opcode.c | |
| parent | 538aad24e3915b6f36dccb640252ea55c7c571d0 (diff) | |
| download | php-git-1f8fd69e781ad7d1b57bca825a7709051a81594f.tar.gz | |
Fix crash
Diffstat (limited to 'Zend/zend_opcode.c')
| -rw-r--r-- | Zend/zend_opcode.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c index 6afead0c7f..c67ab69f1e 100644 --- a/Zend/zend_opcode.c +++ b/Zend/zend_opcode.c @@ -234,8 +234,12 @@ ZEND_API void destroy_op_array(zend_op_array *op_array TSRMLS_DC) } if (op_array->arg_info) { for (i=0; i<op_array->num_args; i++) { - efree(op_array->arg_info[i].name); - efree(op_array->arg_info[i].class_name); + if (op_array->arg_info[i].name) { + efree(op_array->arg_info[i].name); + } + if (op_array->arg_info[i].class_name) { + efree(op_array->arg_info[i].class_name); + } } efree(op_array->arg_info); } |
