com php-src: Fixed memory leaks introdused by: commit 6 11da37617749c81ab22b1e44a0c c1f294cc493a Author: Igor Wiedler <igor@wiedler.ch> Date:
Sat Nov 9 13:48:23 2013 -0500: Zend/zend_compile.c
| From: | Dmitry Stogov | Date: | Tue, 10 Dec 2013 11:13:53 +0000 |
| Subject: | com php-src: Fixed memory leaks introdused by: commit 6 11da37617749c81ab22b1e44a0c c1f294cc493a Author: Igor Wiedler <igor@wiedler.ch> Date: Sat Nov 9 13:48:23 2013 -0500: Zend/zend_compile.c |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74324@lists.php.net to get a copy of this message | ||
Commit: 49d7e98025debe53dca22fed615c2e6457b35b20
Author: Dmitry Stogov <dmitry@zend.com> Tue, 10 Dec 2013 15:13:53 +0400
Parents: 5a87b7ff39bbf427807c46d1e51e2654259ad394
Branches: PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=49d7e98025debe53dca22fed615c2e6457b35b20
Log:
Fixed memory leaks introdused by:
commit 611da37617749c81ab22b1e44a0cc1f294cc493a
Author: Igor Wiedler <igor@wiedler.ch>
Date: Sat Nov 9 13:48:23 2013 -0500
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index ab8609e..d979d17 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;