[PATCH] or Karmarequest for zend_llist.c
| From: | Stefan Esser | Date: | Wed, 05 Jun 2002 09:55:28 +0000 |
| Subject: | [PATCH] or Karmarequest for zend_llist.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-84877@lists.php.net to get a copy of this message | ||
Hi,
herewith i send my patch for the memory leak within ZendEngine(1/2).
This was discussed with Zeev and Andi before but noone fixed it.
So please apply the patch now, or give me the karma and I do it
myself...
Stefan
--- zend_llist.c.orig Wed Jun 5 13:58:41 2002 +++ zend_llist.c Wed Jun 5 13:58:22 2002 @@ -139,6 +139,9 @@ data = old_tail->data; l->tail = l->tail->prev; + if (l->dtor) { + l->dtor(data); + } pefree(old_tail, l->persistent); --l->count; --- zend_llist.c.orig Sun Jan 6 16:21:36 2002 +++ zend_llist.c Wed Jun 5 13:55:50 2002 @@ -140,6 +140,9 @@ data = old_tail->data; l->tail = l->tail->prev; + if (l->dtor) { + l->dtor(data); + } pefree(old_tail, l->persistent); --l->count;
--- zend_llist.c.orig Wed Jun 5 13:58:41 2002 +++ zend_llist.c Wed Jun 5 13:58:22 2002 @@ -139,6 +139,9 @@ data = old_tail->data; l->tail = l->tail->prev; + if (l->dtor) { + l->dtor(data); + } pefree(old_tail, l->persistent); --l->count; --- zend_llist.c.orig Sun Jan 6 16:21:36 2002 +++ zend_llist.c Wed Jun 5 13:55:50 2002 @@ -140,6 +140,9 @@ data = old_tail->data; l->tail = l->tail->prev; + if (l->dtor) { + l->dtor(data); + } pefree(old_tail, l->persistent); --l->count;