# Memory leak per request in apache2filter PHP+ZTS

- Thread: https://externals.io/message/13959
- Original archive: https://news-web.php.net/php.internals/13959
- Started by Kamesh Jayachandran on 2004-11-30T07:56:13+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #13959 — Kamesh Jayachandran — 2004-11-30T07:56:13+00:00

URL: https://externals.io/message/13959#13959

Hi All,
I could see a leak of 60 bytes for the following script.
<?php
//echo "hi";
?>
While investigation I found that 
	SG(request_info).path_translated = safe_strdup(f->r->filename); 
//in sapi/apache2filter/sapi_apache2.c:php_apache_request_ctor
is not getting freed.

Can I free the same in php_apache_request_dtor?

I could see the above safe_strdup in sapi_apache2.c,v 1.108 on
2003/04/10 11:28:54 by stas.

With regards
Kamesh Jayachandran

---

## #13982 — Kamesh Jayachandran — 2004-12-02T14:27:32+00:00

URL: https://externals.io/message/13959#13982 · In reply to: #13959

Can Someone respond to this?

With regards
Kamesh Jayachandran
On Mon, 29 Nov 2004 23:56:13 -0800, "Kamesh Jayachandran"
<kameshj@fastmail.fm> said:
> Hi All,
> I could see a leak of 60 bytes for the following script.
> <?php
> //echo "hi";
> ?>
> While investigation I found that 
> 	SG(request_info).path_translated = safe_strdup(f->r->filename); 
> //in sapi/apache2filter/sapi_apache2.c:php_apache_request_ctor
> is not getting freed.
> 
> Can I free the same in php_apache_request_dtor?
> 
> I could see the above safe_strdup in sapi_apache2.c,v 1.108 on
> 2003/04/10 11:28:54 by stas.
> 
> With regards
> Kamesh Jayachandran

---

## #14007 — Kamesh Jayachandran — 2004-12-06T13:14:35+00:00

URL: https://externals.io/message/13959#14007 · In reply to: #13982

Can Someone respond to this?
 
With regards
Kamesh Jayachandran

On Thu, 02 Dec 2004 06:27:32 -0800, "Kamesh Jayachandran"
<kameshj@fastmail.fm> said:
> Can Someone respond to this?
> 
> With regards
> Kamesh Jayachandran
> On Mon, 29 Nov 2004 23:56:13 -0800, "Kamesh Jayachandran"
> <kameshj@fastmail.fm> said:
> > […]
