diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-07-29 14:27:31 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-07-29 14:27:31 +0000 |
commit | 03ebd363850bb365d52616ca4d7f20cd92a56394 (patch) | |
tree | 646b0debc43b6a686b10ce29bad7b0b78a160e50 /Zend/zend_exceptions.c | |
parent | d739f8f0da727b75db897d7ab5c28923aa9c50e9 (diff) | |
download | php-git-03ebd363850bb365d52616ca4d7f20cd92a56394.tar.gz |
Fixed memory leak
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; |