summaryrefslogtreecommitdiff
path: root/Zend/zend_llist.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-04-25 09:45:58 +0000
committerAndi Gutmans <andi@php.net>2000-04-25 09:45:58 +0000
commit382653aebcd549243a2fe6562e45adf5fb8c0784 (patch)
treeed381ba8e81611c23988320ed3e2d846c29fa1d0 /Zend/zend_llist.c
parentbc220aa0002816b505a99840b75240c3ddfae1fd (diff)
downloadphp-git-382653aebcd549243a2fe6562e45adf5fb8c0784.tar.gz
- Fix persistence of llist
Diffstat (limited to 'Zend/zend_llist.c')
-rw-r--r--Zend/zend_llist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_llist.c b/Zend/zend_llist.c
index 5ea65786c2..0a7755f25b 100644
--- a/Zend/zend_llist.c
+++ b/Zend/zend_llist.c
@@ -81,7 +81,7 @@ ZEND_API void zend_llist_del_element(zend_llist *l, void *element, int (*compare
}
if (l->dtor) {
l->dtor(current->data);
- efree(current);
+ pefree(current, l->persistent);
}
break;
}
@@ -121,7 +121,7 @@ ZEND_API void zend_llist_remove_tail(zend_llist *l)
l->tail->prev->next = NULL;
}
l->tail = l->tail->prev;
- efree(old_tail);
+ pefree(old_tail, l->persistent);
}
}