From: Dmitry Stogov Date: Fri, 25 Apr 2014 07:54:10 +0000 (+0400) Subject: Use appropriate macros X-Git-Tag: POST_PHPNG_MERGE~412^2~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e7cbf3f5842abe6688c11ce3cc11d2eabf0695f;p=php Use appropriate macros --- diff --git a/Zend/zend.c b/Zend/zend.c index dc0ae2739b..465446d663 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -429,7 +429,7 @@ ZEND_API void zend_print_zval_r_ex(zend_write_func_t write_func, zval *expr, int properties->u.v.nApplyCount--; if (is_temp) { zend_hash_destroy(properties); - efree(properties); + FREE_HASHTABLE(properties); } break; } diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 2dc3c22414..b5f9df5d42 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1494,7 +1494,7 @@ void zend_clean_and_cache_symbol_table(zend_array *symbol_table TSRMLS_DC) /* {{ { if (EG(symtable_cache_ptr) >= EG(symtable_cache_limit)) { zend_hash_destroy(&symbol_table->ht); - efree(symbol_table); + FREE_HASHTABLE(symbol_table); } else { /* clean before putting into the cache, since clean could call dtors, which could use cached hash */ diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 3ad4a8cac1..621ad66586 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -359,7 +359,7 @@ void shutdown_executor(TSRMLS_D) /* {{{ */ while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { zend_hash_destroy(&(*EG(symtable_cache_ptr))->ht); - efree(*EG(symtable_cache_ptr)); + FREE_HASHTABLE(*EG(symtable_cache_ptr)); EG(symtable_cache_ptr)--; } } zend_end_try();