cvs: ZendEngine2 / zend_compile.c

From: Date: Mon, 27 Mar 2006 08:09:08 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4773@lists.php.net to get a copy of this message
dmitry Mon Mar 27 08:09:08 2006 UTC Modified files: /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.701&r2=1.702&diff_format=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.701 ZendEngine2/zend_compile.c:1.702 --- ZendEngine2/zend_compile.c:1.701 Thu Mar 23 09:44:30 2006 +++ ZendEngine2/zend_compile.c Mon Mar 27 08:09:08 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.701 2006/03/23 09:44:30 tony2001 Exp $ */ +/* $Id: zend_compile.c,v 1.702 2006/03/27 08:09:08 dmitry Exp $ */ #include <zend_language_parser.h> #include "zend.h" @@ -3978,6 +3978,8 @@ */ CG(active_op_array)->script_encoding = zend_get_compiled_script_encoding(TSRMLS_C); efree(Z_STRVAL(val->u.constant)); + } else { + zval_dtor(&val->u.constant); } zval_dtor(&var->u.constant); }

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