mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 22:42:04 -04:00
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:
parent
54c820164a
commit
d710475e18
1 changed files with 2 additions and 0 deletions
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Reference in a new issue