cvs: ZendEngine2 / zend_llist.c
| From: | Derick Rethans | Date: | Wed, 05 Jun 2002 09:56:28 +0000 |
| Subject: | cvs: ZendEngine2 / zend_llist.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-148@lists.php.net to get a copy of this message | ||
derick Wed Jun 5 05:56:28 2002 EDT
Modified files:
/ZendEngine2 zend_llist.c
Log:
- Fix memleak (patch by Stefan Sesser)
Index: ZendEngine2/zend_llist.c
diff -u ZendEngine2/zend_llist.c:1.28 ZendEngine2/zend_llist.c:1.29
--- ZendEngine2/zend_llist.c:1.28 Sun Jan 6 10:21:36 2002
+++ ZendEngine2/zend_llist.c Wed Jun 5 05:56:28 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;