memory leaks in ext/imap/php_imap.c

From: Date: Wed, 10 May 2000 17:34:06 +0000
Subject: memory leaks in ext/imap/php_imap.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-14770@lists.php.net to get a copy of this message
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);
« previous php.version4 (#14770) next »