Fixed bug #19943 (the memleaks)

This commit is contained in:
foobar 2003-03-06 16:27:05 +00:00
parent 1f85425c4d
commit 4a8abb2f3d

View File

@ -367,6 +367,7 @@ static inline void zend_assign_to_object_op(znode *result, znode *op1, znode *op
if (object->type != IS_OBJECT) {
zend_error(E_WARNING, "Attempt to assign property of non-object");
FREE_OP(Ts, op2, EG(free_op2));
*retval = EG(uninitialized_zval_ptr);
SELECTIVE_PZVAL_LOCK(*retval, result);
@ -466,9 +467,9 @@ static inline void zend_assign_to_variable(znode *result, znode *op1, znode *op2
T->EA.data.str_offset.str->value.str.val[T->EA.data.str_offset.offset] = final_value->value.str.val[0];
if (op2
&& op2->op_type == IS_VAR
&& value==&T(op2->u.var).tmp_var) {
STR_FREE(value->value.str.val);
&& op2->op_type != IS_VAR
&& final_value == &T(op2->u.var).tmp_var) {
STR_FREE(final_value->value.str.val);
}
if (final_value == &tmp) {
zval_dtor(final_value);