cvs: ZendEngine2 / zend_compile.c

From: Date: Mon, 04 Aug 2003 10:40:05 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1602@lists.php.net to get a copy of this message
stas Mon Aug 4 06:40:05 2003 EDT Modified files: /ZendEngine2 zend_compile.c Log: fix leaks: bug #24831 Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.455 ZendEngine2/zend_compile.c:1.456 --- ZendEngine2/zend_compile.c:1.455 Mon Aug 4 03:53:09 2003 +++ ZendEngine2/zend_compile.c Mon Aug 4 06:40:05 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.455 2003/08/04 07:53:09 zeev Exp $ */ +/* $Id: zend_compile.c,v 1.456 2003/08/04 10:40:05 stas Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -194,6 +194,9 @@ } do_op(&result->u.constant, &op1->u.constant, &op2->u.constant TSRMLS_CC); + /* clean up constants after folding - we won't need them anymore */ + zval_dtor(&op1->u.constant); + zval_dtor(&op2->u.constant); } void zend_do_binary_op(zend_uchar op, znode *result, znode *op1, znode *op2 TSRMLS_DC)

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