diff options
| author | Xinchen Hui <laruence@php.net> | 2015-08-12 11:15:09 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@php.net> | 2015-08-12 11:15:09 +0800 |
| commit | 121409865bfd20c96008b054ff0ae7d7d5c15587 (patch) | |
| tree | 6a7f7e6b89a66e41c02f0d280140e04ac7a58e80 /Zend/zend_compile.c | |
| parent | fef086d11326f8f3c16628e6d64ef56e26c648ec (diff) | |
| download | php-git-121409865bfd20c96008b054ff0ae7d7d5c15587.tar.gz | |
use efree_size here
Diffstat (limited to 'Zend/zend_compile.c')
| -rw-r--r-- | Zend/zend_compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 9c54245c41..c73ca98558 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -879,9 +879,9 @@ zend_string *zend_resolve_class_name_ast(zend_ast *ast) /* {{{ */ } /* }}} */ -static void ptr_dtor(zval *zv) /* {{{ */ +static void label_ptr_dtor(zval *zv) /* {{{ */ { - efree(Z_PTR_P(zv)); + efree_size(Z_PTR_P(zv), sizeof(zend_label)); } /* }}} */ @@ -3747,7 +3747,7 @@ void zend_compile_label(zend_ast *ast) /* {{{ */ if (!CG(context).labels) { ALLOC_HASHTABLE(CG(context).labels); - zend_hash_init(CG(context).labels, 8, NULL, ptr_dtor, 0); + zend_hash_init(CG(context).labels, 8, NULL, label_ptr_dtor, 0); } dest.brk_cont = CG(context).current_brk_cont; |
