Re: Leaking references
| From: | Stanislav Malyshev | Date: | Tue, 03 Apr 2001 11:43:28 +0000 |
| Subject: | Re: Leaking references | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-50672@lists.php.net to get a copy of this message | ||
BB>> i have hit on this issue while trying to make a sapi module. my
BB>> problem was that memory emalloc-ed _before_ the request got
BB>> efree-ed by the memory manager after the request and when i
BB>> efree it afterwards a total memory mess occurs (sigsegv,
BB>> infinite loop in libc free or something more nasty)...
You probably should use plain old malloc when you not inside the request.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115