]> granicus.if.org Git - php/commitdiff
fix leak in zend_register_functions()
authorAntony Dovgal <tony2001@php.net>
Mon, 20 Nov 2006 22:08:27 +0000 (22:08 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 20 Nov 2006 22:08:27 +0000 (22:08 +0000)
this is very odd, but Zend MM said nothing about it..

Zend/zend_API.c

index d013bf0a51fe66459c5fb9780b669db61541444a..418a1ede0475fa3487b2a6c4562cbd097d245a28 100644 (file)
@@ -2093,6 +2093,7 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entr
                        } else {
                                reg_function = NULL;
                        }
+                       efree(lc_func_name.v);
                        if (reg_function) {
                                zend_check_magic_method_implementation(scope, reg_function, error_type TSRMLS_CC);
                        }