From 49d7e98025debe53dca22fed615c2e6457b35b20 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 10 Dec 2013 15:13:53 +0400 Subject: [PATCH] Fixed memory leaks introdused by: commit 611da37617749c81ab22b1e44a0cc1f294cc493a Author: Igor Wiedler Date: Sat Nov 9 13:48:23 2013 -0500 --- Zend/zend_compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index ab8609e4106..d979d17f54b 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;