summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2003-08-18 20:45:00 +0000
committerZeev Suraski <zeev@php.net>2003-08-18 20:45:00 +0000
commite404e1d0fe94ee3b56a92eae57fe97d667a848b7 (patch)
treee0b930fc0b3872f6e3d7a29b2ff55723d7eca8fe /ext/com_dotnet
parent76aaeebdf09ddfa2b00c3a6be1d53b09de661071 (diff)
downloadphp-git-e404e1d0fe94ee3b56a92eae57fe97d667a848b7.tar.gz
Fix leak - non persistent hashes cannot be used in MINIT!
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_extension.c2
1 files changed, 1 insertions, 1 deletions
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);