]> granicus.if.org Git - php/commitdiff
Fix leak - non persistent hashes cannot be used in MINIT!
authorZeev Suraski <zeev@php.net>
Mon, 18 Aug 2003 20:45:00 +0000 (20:45 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 18 Aug 2003 20:45:00 +0000 (20:45 +0000)
ext/com_dotnet/com_extension.c

index 7ed2d984079fead10781fc43b2097b21a8aaf1d9..3ba68e6b2fdacca37881ccda4fbd8c5c2ff3bc1a 100644 (file)
@@ -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);