com php-src: Fixed memory leak: Zend/zend_compile.c

From: Date: Fri, 28 Feb 2014 10:24:35 +0000
Subject: com php-src: Fixed memory leak: Zend/zend_compile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77886@lists.php.net to get a copy of this message
Commit: 04d04d01c895817151c6c043b1043256d921fed3 Author: Dmitry Stogov <dmitry@zend.com> Fri, 28 Feb 2014 14:24:35 +0400 Parents: a72a1b1391dfe476a2a1f625bf4600e5744f8f01 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=04d04d01c895817151c6c043b1043256d921fed3 Log: Fixed memory leak Changed paths: M Zend/zend_compile.c Diff: diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 435ab51..ca9ee34 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -7021,7 +7021,7 @@ void zend_do_build_namespace_name(znode *result, znode *prefix, znode *name TSRM //??? Z_TYPE(result->u.constant) = IS_STRING; //??? Z_STRVAL(result->u.constant) = NULL; //??? Z_STRLEN(result->u.constant) = 0; - ZVAL_UNDEF(&result->u.constant); + ZVAL_EMPTY_STRING(&result->u.constant); } /* prefix = result */ zend_do_build_full_name(NULL, result, name, 0 TSRMLS_CC);

« previous php.cvs (#77886) next »