]> granicus.if.org Git - php/commitdiff
Using ALLOC_HASHTABLE/FREE_HASHTABLE instead of emalloc/free.
authorDmitry Stogov <dmitry@php.net>
Thu, 25 Mar 2004 08:14:33 +0000 (08:14 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 25 Mar 2004 08:14:33 +0000 (08:14 +0000)
Zend/zend_execute_API.c

index 03df2ca548a75d1e239480459564c50d833ddc64..42bfb46cde698cda531b7c7137a6a17ed99a044f 100644 (file)
@@ -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);      
        }