summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorChristian Seiler <cseiler@php.net>2009-02-01 15:06:19 +0000
committerChristian Seiler <cseiler@php.net>2009-02-01 15:06:19 +0000
commit63ee3c98a84ed39c2eb45840937b5c7b87908f24 (patch)
treec66d6e2588bf881ff8797a946da5116b01e6f947 /ext/reflection/php_reflection.c
parent4d754de109455f50e83c357244d79b94f6c65ff8 (diff)
downloadphp-git-63ee3c98a84ed39c2eb45840937b5c7b87908f24.tar.gz
Fixed regression of bug #46205, thanks to felipe for pointing this out.
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index ee137231d2..37b00f96f5 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -2077,6 +2077,9 @@ ZEND_METHOD(reflection_parameter, __construct)
}
efree(fptr);
}
+ if (is_closure) {
+ zval_ptr_dtor(&reference);
+ }
_DO_THROW("The parameter specified by its offset could not be found");
/* returns out of this function */
}
@@ -2098,6 +2101,9 @@ ZEND_METHOD(reflection_parameter, __construct)
}
efree(fptr);
}
+ if (is_closure) {
+ zval_ptr_dtor(&reference);
+ }
_DO_THROW("The parameter specified by its name could not be found");
/* returns out of this function */
}