summaryrefslogtreecommitdiff
path: root/Zend/zend_llist.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-06-05 09:56:28 +0000
committerDerick Rethans <derick@php.net>2002-06-05 09:56:28 +0000
commit1db85d6651f87a034fc2f9b651b4adbcaa983846 (patch)
tree39a6985c9463c5e0177eb9aca27b6d2c2390049f /Zend/zend_llist.c
parente9b12faedb43ac2d1040e148b67aa3373d1710f0 (diff)
downloadphp-git-1db85d6651f87a034fc2f9b651b4adbcaa983846.tar.gz
- Fix memleak (patch by Stefan Sesser)
Diffstat (limited to 'Zend/zend_llist.c')
-rw-r--r--Zend/zend_llist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_llist.c b/Zend/zend_llist.c
index d729c89c99..b9f8eb2b10 100644
--- a/Zend/zend_llist.c
+++ b/Zend/zend_llist.c
@@ -140,6 +140,9 @@ ZEND_API void *zend_llist_remove_tail(zend_llist *l)
data = old_tail->data;
l->tail = l->tail->prev;
+ if (l->dtor) {
+ l->dtor(data);
+ }
pefree(old_tail, l->persistent);
--l->count;