]> granicus.if.org Git - php/commitdiff
fix leak in get_extension_funcs()
authorAntony Dovgal <tony2001@php.net>
Tue, 21 Nov 2006 11:10:01 +0000 (11:10 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 21 Nov 2006 11:10:01 +0000 (11:10 +0000)
Zend/zend_builtin_functions.c

index d29f391b4cd7f20e5bfa3e9a16f7c796068c5e9d..2124eaa1632855ba3532d7ccd106a092e8d9f487 100644 (file)
@@ -2271,6 +2271,9 @@ ZEND_FUNCTION(get_extension_funcs)
                        RETURN_FALSE;
                }
        } else {
+               if (ext_type == IS_UNICODE) {
+                       efree(name);
+               }
                func = builtin_functions;
        }