]> granicus.if.org Git - php/commitdiff
Fixed memory leaks introdused by:
authorDmitry Stogov <dmitry@zend.com>
Tue, 10 Dec 2013 11:13:53 +0000 (15:13 +0400)
committerDmitry Stogov <dmitry@zend.com>
Tue, 10 Dec 2013 11:13:53 +0000 (15:13 +0400)
commit 611da37617749c81ab22b1e44a0cc1f294cc493a
Author: Igor Wiedler <igor@wiedler.ch>
Date:   Sat Nov 9 13:48:23 2013 -0500

Zend/zend_compile.c

index ab8609e4106d677eceea606a3e25e17e2eb1c584..d979d17f54bd6f09aad9a501ab9f71ea0c4a6e71 100644 (file)
@@ -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;