]> granicus.if.org Git - php/commitdiff
fix leak: when dup was <success>ful zend_std_object_get_class_name() returns SUCCESS...
authorAntony Dovgal <tony2001@php.net>
Tue, 28 Jun 2005 22:04:07 +0000 (22:04 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 28 Jun 2005 22:04:07 +0000 (22:04 +0000)
Zend/zend_execute.c

index b930b96142dd0ed76489a544902426b209a5b02a..4607a4cc104c68d4f4eebb06097feb17c803ba0b 100644 (file)
@@ -735,7 +735,7 @@ static inline void zend_assign_to_variable(znode *result, znode *op1, znode *op2
                                zval_ptr_dtor(&value);
                        }
                }
-               if (dup) {
+               if (dup == SUCCESS) {
                        efree(class_name);
                }
        } else if (PZVAL_IS_REF(variable_ptr)) {