Silence "Use of memory after it is freed" by asserting the head and tail of list are not the element after it is unlinked from the list.

This commit is contained in:
Mark Andrews 2013-01-17 14:15:28 +11:00
parent a6927ececd
commit c224fbaab3

View file

@ -102,6 +102,8 @@
} \
(elt)->link.prev = (type *)(-1); \
(elt)->link.next = (type *)(-1); \
ISC_INSIST((list).head != (elt)); \
ISC_INSIST((list).head != (elt)); \
} while (0)
#define __ISC_LIST_UNLINKUNSAFE(list, elt, link) \