]> granicus.if.org Git - php/commitdiff
- Fix leak (Dmitry)
authorAndi Gutmans <andi@php.net>
Tue, 2 Mar 2004 10:13:43 +0000 (10:13 +0000)
committerAndi Gutmans <andi@php.net>
Tue, 2 Mar 2004 10:13:43 +0000 (10:13 +0000)
Zend/zend_execute.c

index 4991ad2ccdad813784dd8a831b567fc38c155b5b..645c52861e8be874a1e704d6971792dff2a19e0b 100644 (file)
@@ -1583,6 +1583,7 @@ static inline int zend_binary_assign_op_obj_helper(int (*binary_op)(zval *result
        if (object->type != IS_OBJECT) {
                zend_error(E_WARNING, "Attempt to assign property of non-object");
                FREE_OP(Ts, op2, EG(free_op2));
+               FREE_OP(Ts, value, free_value);
 
                *retval = EG(uninitialized_zval_ptr);
 
@@ -1659,6 +1660,7 @@ static inline int zend_binary_assign_op_obj_helper(int (*binary_op)(zval *result
                }
                
                FREE_OP(Ts, op2, EG(free_op2));
+               FREE_OP(Ts, value, free_value);
        }
 
        /* assign_obj has two opcodes! */