Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c
| From: | Marcus Boerger | Date: | Thu, 29 Jul 2004 17:05:32 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-2822@lists.php.net to get a copy of this message | ||
Hello Sara,
that's a memory leak. Maybe you should revert, review and discuss once
it is working.
regards
marcus
Thursday, July 29, 2004, 6:49:59 PM, you wrote:
> pollita Thu Jul 29 12:49:59 2004 EDT
> Modified files:
> /ZendEngine2 zend_execute.c
> Log:
> &tmp and label are the same thing, don't free it till we're done with it.
>
> http://cvs.php.net/diff.php/ZendEngine2/zend_execute.c?r1=1.658&r2=1.659&ty=u
> Index: ZendEngine2/zend_execute.c
> diff -u ZendEngine2/zend_execute.c:1.658 ZendEngine2/zend_execute.c:1.659
> --- ZendEngine2/zend_execute.c:1.658 Thu Jul 29 12:36:00 2004
> +++ ZendEngine2/zend_execute.c Thu Jul 29 12:49:59 2004
> @@ -17,7 +17,7 @@
>
> +----------------------------------------------------------------------+
> */
> -/* $Id: zend_execute.c,v 1.658 2004/07/29 16:36:00 pollita Exp $ */
> +/* $Id: zend_execute.c,v 1.659 2004/07/29 16:49:59 pollita Exp $ */
> #define ZEND_INTENSIVE_DEBUGGING 0
> @@ -4085,8 +4085,8 @@
> return 0;
> }
> - zval_dtor(&tmp);
> zend_error(E_ERROR, "Unknown label %s", Z_STRVAL_P(label));
> + zval_dtor(&tmp);
> NEXT_OPCODE();
> }
--
Best regards,
Marcus mailto:helly@php.net