diff --git a/src/detect-engine-iponly.c b/src/detect-engine-iponly.c index d9030b0373..e9604384a3 100644 --- a/src/detect-engine-iponly.c +++ b/src/detect-engine-iponly.c @@ -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)