diff options
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r-- | Zend/zend_exceptions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 0eaf8fff1f..2696d66091 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -52,6 +52,7 @@ void zend_exception_set_previous(zval *add_previous TSRMLS_DC) previous = zend_read_property(default_exception_ce, exception, "previous", sizeof("previous")-1, 1 TSRMLS_CC); if (Z_TYPE_P(previous) == IS_NULL) { zend_update_property(default_exception_ce, exception, "previous", sizeof("previous")-1, add_previous TSRMLS_CC); + Z_DELREF_P(add_previous); return; } exception = previous; |