summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-07-29 14:28:11 +0000
committerDmitry Stogov <dmitry@php.net>2008-07-29 14:28:11 +0000
commitb6cca302116e9c3e1f8ef5d77699c05b94226de7 (patch)
tree5c4d3cf3b81fcee9a41f22aab39c54146f96b516 /Zend/zend_exceptions.c
parent738346fd929410da1c68b5d48047d2f470268aee (diff)
downloadphp-git-b6cca302116e9c3e1f8ef5d77699c05b94226de7.tar.gz
Fixed memory leak
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 5f725a4b72..90b00d76d4 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;