Use appropriate macros

This commit is contained in:
Dmitry Stogov 2014-04-25 11:54:10 +04:00
parent 2c39cf670c
commit 4e7cbf3f58
3 changed files with 3 additions and 3 deletions

View file

@ -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;
}

View file

@ -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 */

View file

@ -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();