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;

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to