Re: [ZEND-ENGINE-CVS] cvs: Zend / zend.c zend.hzend_config.nw.h
| From: | Andi Gutmans | Date: | Mon, 06 Jan 2003 20:32:21 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: Zend / zend.c zend.hzend_config.nw.h | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-754@lists.php.net to get a copy of this message | ||
At 02:18 AM 1/6/2003 -0700, Ananth Kesari wrote:
The patch is done to fix some memory leaks. The function zend_shutdown (defined in zend.c) does get called for NetWare from the php_module_shutdown function of main.c. Without this patch it leaks huge memory. With this patch, the memory leaks reduce considerably. In fact, this patch is put in the zend_shutdown function itself. So, we think the patch is in place unless we need to call some other function to free memory.Yes you are right. I didn't realize it's in zend_shutdown(). I don't quite understand why these leaks bother you. They happen once per-process. It's actually faster to let the operating system nuke them than freeing them and then exiting. Then again, I do agree that for debugging purposes especially when using something like purify, it is easier and cleaner when there are no leaks. Andi