diff options
author | Dmitry Stogov <dmitry@php.net> | 2004-03-25 08:14:33 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2004-03-25 08:14:33 +0000 |
commit | 2bbba73606cb016aed42b3e51a302c6eb865715d (patch) | |
tree | 154004bce3f02ca7b214e8dfbb7326b495984455 /Zend | |
parent | e973875d9825734f315e2bc031c6376f14b7d5f3 (diff) | |
download | php-git-2bbba73606cb016aed42b3e51a302c6eb865715d.tar.gz |
Using ALLOC_HASHTABLE/FREE_HASHTABLE instead of emalloc/free.
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_execute_API.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 03df2ca548..42bfb46cde 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -295,7 +295,7 @@ void shutdown_executor(TSRMLS_D) zend_objects_store_destroy(&EG(objects_store)); if (EG(in_autoload)) { zend_hash_destroy(EG(in_autoload)); - efree(EG(in_autoload)); + FREE_HASHTABLE(EG(in_autoload)); } } zend_end_try(); } @@ -894,7 +894,7 @@ ZEND_API int zend_lookup_class(char *name, int name_length, zend_class_entry *** } if (EG(in_autoload) == NULL) { - EG(in_autoload) = emalloc(sizeof(HashTable)); + ALLOC_HASHTABLE(EG(in_autoload)); zend_hash_init(EG(in_autoload), 0, NULL, NULL, 0); } |