cvs: ZendEngine2(PHP_5_1) / zend_compile.c

From: Date: Mon, 27 Mar 2006 08:09:18 +0000
Subject: cvs: ZendEngine2(PHP_5_1) / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4774@lists.php.net to get a copy of this message
dmitry Mon Mar 27 08:09:18 2006 UTC Modified files: (Branch: PHP_5_1) /ZendEngine2 zend_compile.c Log: Fixed meory leak in case of unknown pragma http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_compile.c?r1=1.647.2.24&r2=1.647.2.25&diff_format=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.647.2.24 ZendEngine2/zend_compile.c:1.647.2.25 --- ZendEngine2/zend_compile.c:1.647.2.24 Mon Mar 20 15:13:41 2006 +++ ZendEngine2/zend_compile.c Mon Mar 27 08:09:18 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.647.2.24 2006/03/20 15:13:41 dmitry Exp $ */ +/* $Id: zend_compile.c,v 1.647.2.25 2006/03/27 08:09:18 dmitry Exp $ */ #include <zend_language_parser.h> #include "zend.h" @@ -3781,6 +3781,8 @@ } efree(val->u.constant.value.str.val); #endif /* ZEND_MULTIBYTE */ + } else { + zval_dtor(&val->u.constant); } zval_dtor(&var->u.constant); }

« previous php.zend-engine.cvs (#4774) next »