Browse Source

Fixed bug #45327 (memory leak if offsetGet throws exception)

# Patch by Greg
PHP-5.2.1RC1
Ilia Alshanetsky 18 years ago
parent
commit
013c7f1f92
  1. 4
      Zend/zend_object_handlers.c

4
Zend/zend_object_handlers.c

@ -472,6 +472,10 @@ zval *zend_std_read_dimension(zval *object, zval *offset, int type TSRMLS_DC)
}
return 0;
}
if (EG(exception)) {
zval_ptr_dtor(&retval);
return 0;
}
/* Undo PZVAL_LOCK() */
retval->refcount--;

Loading…
Cancel
Save