summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--linkedlist.c3
1 files changed, 3 insertions, 0 deletions
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;
}