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

index ee73ce48b2d8b2f3a34323925bcd1bf8d3cfffac..d1748d2ea39bde11f2171000f674664551028d88 100644 (file)
@@ -941,6 +941,11 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
                                                Z_TYPE_P(fci->function_name) = IS_STRING;
                                                Z_STRVAL_P(fci->function_name) = old_func_name;
                                        }
+
+                                       if (call_via_handler) {
+                                               zval_ptr_dtor(&method_name);
+                                               zval_ptr_dtor(&params_array);
+                                       }
                                        return FAILURE;
                                }
                                ALLOC_ZVAL(new_zval);