diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 13:41:25 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 13:41:25 +0000 |
commit | 365e210196e7d714b1155be3b65e39da3795b667 (patch) | |
tree | 319ca98225a448187f093e2c181b0564894929da /linkedlist.c | |
parent | dcf8cb5ab40ae3bf22852bd6e00c8dbd96096820 (diff) | |
download | rsyslog-365e210196e7d714b1155be3b65e39da3795b667.tar.gz rsyslog-365e210196e7d714b1155be3b65e39da3795b667.tar.xz rsyslog-365e210196e7d714b1155be3b65e39da3795b667.zip |
bugfix: llDestroy() left the list with invalid root/last pointers
Diffstat (limited to 'linkedlist.c')
-rw-r--r-- | linkedlist.c | 3 |
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; } |