From: Dmitry Stogov Date: Tue, 10 Dec 2013 11:13:53 +0000 (+0400) Subject: Fixed memory leaks introdused by: X-Git-Tag: POST_64BIT_BRANCH_MERGE^2~109^2~18^2~338^2~6^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49d7e98025debe53dca22fed615c2e6457b35b20;p=php Fixed memory leaks introdused by: commit 611da37617749c81ab22b1e44a0cc1f294cc493a Author: Igor Wiedler Date: Sat Nov 9 13:48:23 2013 -0500 --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index ab8609e410..d979d17f54 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -7069,7 +7069,7 @@ void zend_do_use(znode *ns_name, znode *new_name, int is_global TSRMLS_DC) /* {{ zend_hash_init(CG(current_import), 0, NULL, ZVAL_PTR_DTOR, 0); } - ALLOC_ZVAL(ns); + MAKE_STD_ZVAL(ns); ZVAL_ZVAL(ns, &ns_name->u.constant, 0, 0); if (new_name) { name = &new_name->u.constant; @@ -7146,7 +7146,7 @@ void zend_do_use_non_class(znode *ns_name, znode *new_name, int is_global, int i zval *name, *ns, tmp; zend_bool warn = 0; - ALLOC_ZVAL(ns); + MAKE_STD_ZVAL(ns); ZVAL_ZVAL(ns, &ns_name->u.constant, 0, 0); if (new_name) { name = &new_name->u.constant;