Re: PHP 4.0 Bug #2795: Memory Leak in base64_encode()
| From: | Sascha Schumann | Date: | Tue, 23 Nov 1999 18:10:24 +0000 |
| Subject: | Re: PHP 4.0 Bug #2795: Memory Leak in base64_encode() | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-13008@lists.php.net to get a copy of this message | ||
On Tue, Nov 23, 1999 at 09:44:56AM -0600, Andrei Zmievski wrote:
> On Tue, 23 Nov 1999, Sascha Schumann wrote:
> > Line 323 is the only place where new memory is allocated for
> > path_translated. Either allocate always new memory (and free
> > accordingly), or mark the special situation with a flag which
> > causes path_translated to be freed at the end of main().
>
> Where is cgi sapi being shut down so that the memory can be freed
> acoordingly?
The counter function to init_request_info() is missing. You
might want to add one...
(It probably was omitted, because SG() maintains mostly
static references.)
--
Regards,
Sascha Schumann
Consultant