From 365e210196e7d714b1155be3b65e39da3795b667 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 19 Dec 2007 13:41:25 +0000 Subject: bugfix: llDestroy() left the list with invalid root/last pointers --- linkedlist.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linkedlist.c') diff --git a/linkedlist.c b/linkedlist.c index c1c5d463..ff1320e5 100644 --- a/linkedlist.c +++ b/linkedlist.c @@ -102,6 +102,9 @@ rsRetVal llDestroy(linkedList_t *pThis) */ llDestroyElt(pThis, pEltPrev); } + /* now clean up the pointers */ + pThis->pRoot = NULL; + pThis->pLast = NULL; return iRet; } -- cgit v1.2.3