mirror of
https://github.com/php/php-src.git
synced 2026-03-29 03:32:20 +02:00
fix leak: when dup was <success>ful zend_std_object_get_class_name() returns SUCCESS aka 0
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user