From: Zeev Suraski Date: Mon, 18 Aug 2003 20:45:00 +0000 (+0000) Subject: Fix leak - non persistent hashes cannot be used in MINIT! X-Git-Tag: RELEASE_0_7~578 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e404e1d0fe94ee3b56a92eae57fe97d667a848b7;p=php Fix leak - non persistent hashes cannot be used in MINIT! --- diff --git a/ext/com_dotnet/com_extension.c b/ext/com_dotnet/com_extension.c index 7ed2d98407..3ba68e6b2f 100644 --- a/ext/com_dotnet/com_extension.c +++ b/ext/com_dotnet/com_extension.c @@ -118,7 +118,7 @@ PHP_MINIT_FUNCTION(com_dotnet) ce.create_object = php_com_object_new; zend_register_internal_class_ex(&ce, php_com_variant_class_entry, "variant" TSRMLS_CC); - zend_ts_hash_init(&php_com_typelibraries, 0, NULL, php_com_typelibrary_dtor, 0); + zend_ts_hash_init(&php_com_typelibraries, 0, NULL, php_com_typelibrary_dtor, 1); #if HAVE_MSCOREE_H INIT_CLASS_ENTRY(ce, "dotnet", NULL);