summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2004-03-01 17:43:57 +0000
committerAndi Gutmans <andi@php.net>2004-03-01 17:43:57 +0000
commit161ed69721b64b6f04b015f0bba30a09cbed3652 (patch)
tree6a720a8536352084d956520b26906437dba483f3 /ext/reflection/php_reflection.c
parent0f1382e1266ddac4727971f1121d0b8f6da7df98 (diff)
downloadphp-git-161ed69721b64b6f04b015f0bba30a09cbed3652.tar.gz
- Fix leak
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 4b5c9b4167..f157838273 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -1614,13 +1614,13 @@ ZEND_METHOD(reflection_method, invoke)
} else {
if ((Z_TYPE_PP(params[0]) != IS_OBJECT)) {
efree(params);
-
_DO_THROW("Non-object passed to Invoke()");
/* Returns from this function */
}
obj_ce = Z_OBJCE_PP(params[0]);
if (!instanceof_function(obj_ce, mptr->common.scope TSRMLS_CC)) {
+ efree(params);
_DO_THROW("Given object is not an instance of the class this method was declared in");
/* Returns from this function */
}