]> granicus.if.org Git - php/commitdiff
MFH
authorAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 11:08:00 +0000 (11:08 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 11:08:00 +0000 (11:08 +0000)
Zend/zend_execute_API.c

index 0a0fba1f6fe56f62c8b5e007c03fccae37b38912..dc13f5e7aa8b3ef2dea53eec981fc92b9463c4d1 100644 (file)
@@ -870,6 +870,11 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
                                                zend_ptr_stack_n_push(&EG(argument_stack), 2, (void *) (long) i, NULL);
                                                zend_ptr_stack_clear_multiple(TSRMLS_C);
                                        }
+
+                                       if (call_via_handler) {
+                                               zval_ptr_dtor(&method_name);
+                                               zval_ptr_dtor(&params_array);
+                                       }
                                        return FAILURE;
                                }
                                ALLOC_ZVAL(new_zval);