1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00

MFH: fix leak and improve CS a bit

This commit is contained in:
Antony Dovgal
2005-06-28 22:04:52 +00:00
parent 96c20f31ba
commit 2a328b9ba7
+1 -3
View File
@@ -2944,11 +2944,9 @@ return_by_value:
zend_error(E_STRICT, "Implicit cloning object of class '%s' because of 'zend.ze1_compatibility_mode'", class_name);
(*EG(return_value_ptr_ptr))->value.obj = Z_OBJ_HT_P(retval_ptr)->clone_obj(retval_ptr TSRMLS_CC);
if(dup)
{
if(dup == SUCCESS) {
efree(class_name);
}
} else if (!EG(free_op1)) { /* Not a temp var */
if (EG(active_op_array)->return_reference == ZEND_RETURN_REF ||
(PZVAL_IS_REF(retval_ptr) && retval_ptr->refcount > 0)) {