]> granicus.if.org Git - php/commitdiff
Fixed regression of bug #46205, thanks to felipe for pointing this out.
authorChristian Seiler <cseiler@php.net>
Sun, 1 Feb 2009 15:06:19 +0000 (15:06 +0000)
committerChristian Seiler <cseiler@php.net>
Sun, 1 Feb 2009 15:06:19 +0000 (15:06 +0000)
ext/reflection/php_reflection.c

index ee137231d2a521c3414792f319be6c35a5052782..37b00f96f557c6b1e428163d7e23b8f199ff357f 100644 (file)
@@ -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 */
                }