detect: fix user after free in debug log

Found by gcc 12.2.1.
pull/7936/head
Jason Ish 3 years ago committed by Victor Julien
parent 40d1bb3422
commit 0ca09ecbcd

@ -462,8 +462,8 @@ void IPOnlyCIDRListFree(IPOnlyCIDRItem *tmphead)
while (it != NULL) {
i++;
SCFree(it);
SCLogDebug("Item(%p) %"PRIu32" removed", it, i);
SCFree(it);
it = next;
if (next != NULL)

Loading…
Cancel
Save