Re: [PHP4BETA] memory leaks in ext/imap/php_imap.c
| From: | Jade Nicoletti | Date: | Thu, 11 May 2000 07:14:00 +0000 |
| Subject: | Re: [PHP4BETA] memory leaks in ext/imap/php_imap.c | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14819@lists.php.net to get a copy of this message | ||
Ok, nobody responded. So I guess the lines in question are for no
particular reason. Can anybody commit the patch?
-Jade.
On Wed, May 10, 2000 at 07:34:06PM +0200, Jade Nicoletti wrote:
> Hi,
>
> Please, may somebody explain me why the return values of the imap string
> converting functions have to be initialized as objects?
>
> On my system (Debian GNU/Linux) this is only resulting in memory leaks.
>
> -Jade.
>
> --
> ===============================================================================
> Jade Nicoletti Nicoletti Net Services Tel. 01 240 4774
> Geschäftsleitung Postfach 2519 Fax 01 240 4775
> System-Administration 8021 Zürich
> ============================================[ Weitere Infos:
> http://nns.ch/ ]==
> --- php_imap.c.orig Wed May 10 19:27:02 2000
> +++ php_imap.c Wed May 10 15:28:05 2000
> @@ -1975,7 +1975,6 @@
> }
>
> convert_to_string_ex(text);
> - object_init(return_value);
>
> decode = (char *) rfc822_base64((unsigned char *) Z_STRVAL_PP(text), Z_STRLEN_PP(text),
> &newlength);
> RETVAL_STRINGL(decode, newlength, 1);
> @@ -1997,7 +1996,6 @@
> }
>
> convert_to_string_ex(text);
> - object_init(return_value);
>
> decode = (char *) rfc822_qprint((unsigned char *) Z_STRVAL_PP(text), Z_STRLEN_PP(text),
> &newlength);
> RETVAL_STRINGL(decode, newlength, 1);
> @@ -2019,7 +2017,6 @@
> }
>
> convert_to_string_ex(text);
> - object_init(return_value);
>
> decode = (char *) rfc822_8bit((unsigned char *) Z_STRVAL_PP(text), Z_STRLEN_PP(text),
> &newlength);
> RETVAL_STRINGL(decode, newlength, 1);
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
--
===============================================================================
Jade Nicoletti Nicoletti Net Services Tel. 01 240 4774
Geschäftsleitung Postfach 2519 Fax 01 240 4775
System-Administration 8021 Zürich
============================================[ Weitere Infos: http://nns.ch/ ]==