Re: [PHP-DEV] False memory leak from debugger.c From: Zeev Suraski (bourbon <email protected>)
Date: 05/31/98

At 15:13 30/05/98 -0700, Jim Winstead wrote:
>(This may be a Win32-only thing, or only when the debugger is enabled.)
>
>The find_hostname() function uses estrndup(), but it happens during the
>first time the memory manager is initialized (module startup?) so when
>that gets closed, it frees the memory. I guess the correct solution
>is to use strdup() and free the memory in php3_mshutdown_debugger.

100% correct diagnosis :)

Zeev

--
Zeev Suraski   <zeev <email protected>>
For a PGP public key, finger bourbon <email protected>