]> granicus.if.org Git - php/commitdiff
- Fix leak reported by "l0t3k" <cshmoove@hotmail.com>
authorAndi Gutmans <andi@php.net>
Sun, 1 Sep 2002 19:19:50 +0000 (19:19 +0000)
committerAndi Gutmans <andi@php.net>
Sun, 1 Sep 2002 19:19:50 +0000 (19:19 +0000)
Zend/zend_llist.c

index b9f8eb2b108cc055226687bb68f99729eea91c2d..bb47f9b459ace8670fedd918668bfb02ab969c1a 100644 (file)
@@ -82,8 +82,8 @@ ZEND_API void zend_llist_prepend_element(zend_llist *l, void *element)
                        }\
                        if ((l)->dtor) {\
                                (l)->dtor((current)->data);\
-                               pefree((current), (l)->persistent);\
                        }\
+                       pefree((current), (l)->persistent);\
                        --l->count;