Re: [PATCH] or Karmarequest for zend_llist.c
| From: | Stefan Esser | Date: | Wed, 05 Jun 2002 10:36:45 +0000 |
| Subject: | Re: [PATCH] or Karmarequest for zend_llist.c | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-84880@lists.php.net to get a copy of this message | ||
> since there obviously was never a talk on this list about and
> out of curiosity, how can the leak be reproduced?
zend_llist_remove_tail does not call the dtor of the element that
gets removed. This will cause a memory leak everywhere it is used
and where the dtor is != NULL. Within the engine itself the dtor
is NULL so no leak there. But remove_tail is also used within the
fileupload code where it causes a memoryleak when headers are
splitted over several lines.
I will commit some changes to fileupload code within the next
30 minutes...
Stefan