1
0
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:
Antony Dovgal
2005-06-28 22:04:07 +00:00
parent a8949a5f0e
commit aa88cd901f

View 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)) {