- Fix leak

This commit is contained in:
Andi Gutmans 2002-09-24 19:32:01 +00:00
parent f78fa50423
commit 974b502199

View File

@ -1678,14 +1678,14 @@ ZEND_API int do_bind_inherited_class(zend_op *opline, HashTable *function_table,
ce = *pce;
}
ce->refcount++;
zend_do_inheritance(ce, parent_ce);
if (strchr(opline->op2.u.constant.value.str.val, ':')) {
return create_nested_class(class_table, opline->op2.u.constant.value.str.val, ce);
}
ce->refcount++;
/* Register the derived class */
if (zend_hash_add(class_table, opline->op2.u.constant.value.str.val, opline->op2.u.constant.value.str.len+1, pce, sizeof(zend_class_entry *), NULL)==FAILURE) {
zend_error(E_ERROR, "Cannot redeclare class %s", opline->op2.u.constant.value.str.val);