diff --git a/src/detect-engine-siggroup.c b/src/detect-engine-siggroup.c index 0ff6a77121..8850d1475f 100644 --- a/src/detect-engine-siggroup.c +++ b/src/detect-engine-siggroup.c @@ -888,6 +888,9 @@ static void SigGroupHeadFreeSigArraysHash2(DetectEngineCtx *de_ctx, htb = HashListTableGetListNext(htb)) { sgh = (SigGroupHead *)HashListTableGetListData(htb); + if (sgh == NULL) { + continue; + } if (sgh->init->sig_array != NULL) { detect_siggroup_sigarray_free_cnt++;