Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_3) / zend_highlight.c
| From: | Ilia A. | Date: | Thu, 06 Mar 2003 21:59:44 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_3) / zend_highlight.c | ||
| References: | 1 2 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-1018@lists.php.net to get a copy of this message | ||
On March 6, 2003 04:40 pm, Moriyoshi Koizumi wrote:
> "Ilia Alshanetsky" <ilia@prohost.org> wrote:
> > -#ifdef ZEND_MULTIBYTE
> > - if (LANG_SCNG(code)) {
> > - efree(LANG_SCNG(code));
> > - }
> > - if (LANG_SCNG(current_code)) {
> > - efree(LANG_SCNG(current_code));
> > + prev_space = token.type = 0;
> > }
> > -#endif /* ZEND_MULTIBYTE */
>
> Why did you eliminate this part?
There is very little harm in letting this leak(?) happen simply because once
the zend_strip() is call the code exits and memory cleanup will be done for
us. If the decision is made to add ZEND_FUNCTION(strip_source) or something
to that affect, then we can re-introduce this back into the code.
Ilia