]> granicus.if.org Git - php/commitdiff
Fix crash
authorMarcus Boerger <helly@php.net>
Sun, 3 Aug 2003 22:28:14 +0000 (22:28 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 3 Aug 2003 22:28:14 +0000 (22:28 +0000)
Zend/zend_opcode.c

index 6afead0c7f20155c58df2d96efa3456b98eeee34..c67ab69f1ecfedeb04d80c5694e90b159a458f9b 100644 (file)
@@ -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);
        }