--- psiconv/trunk/lib/psiconv/list.c 2001/01/29 21:57:05 98 +++ psiconv/trunk/lib/psiconv/list.c 2003/11/25 17:57:05 168 @@ -22,11 +22,17 @@ #include "compat.h" #include #include +#include #include #include "general.h" #include "list.h" #include "error.h" +#ifdef DMALLOC +#include +#endif + + static int psiconv_list_resize(psiconv_list l,psiconv_u32 nr); struct psiconv_list_s { @@ -53,9 +59,8 @@ { if (l->max_len) free(l->els); - l->max_len = 0; - l->cur_len = 0; - l->els = NULL; + free(l); + l = NULL; } void psiconv_list_free_el(psiconv_list l, void free_el(void *el))