summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-07-14 18:39:48 +0200
committerNikita Popov <nikic@php.net>2016-07-14 18:39:48 +0200
commit0bda0422af0a9a920135bf3d7b7b4784eb0df802 (patch)
tree53c9577143b24f034fb560c97f904077c2f63ba1 /Zend/zend_exceptions.c
parent5aaffb79084ba929675a7e8543f91ff324439939 (diff)
parent411eee7b5ae8b529b10184f98e3f9b02d93ba864 (diff)
downloadphp-git-0bda0422af0a9a920135bf3d7b7b4784eb0df802.tar.gz
Merge branch 'PHP-7.0'
Conflicts: Zend/zend_vm_execute.h
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 7fd55a4fc8..5301850310 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -531,6 +531,7 @@ static void _build_trace_args(zval *arg, smart_str *str) /* {{{ */
smart_str_appends(str, "Object(");
smart_str_appends(str, ZSTR_VAL(class_name));
smart_str_appends(str, "), ");
+ zend_string_release(class_name);
break;
}
}
@@ -1039,6 +1040,7 @@ ZEND_API ZEND_COLD void zend_throw_exception_object(zval *exception) /* {{{ */
if (!exception_ce || !instanceof_function(exception_ce, zend_ce_throwable)) {
zend_throw_error(NULL, "Cannot throw objects that do not implement Throwable");
+ zval_ptr_dtor(exception);
return;
}
zend_throw_exception_internal(exception);