result = 1;
cleanup:
- SigGroupCleanup(de_ctx);
- SigCleanSignatures(de_ctx);
-
DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
DetectEngineCtxFree(de_ctx);
UTHFreePackets(&p, 1);
end:
+ StatsThreadCleanup(&th_v);
return result;
}
result = 1;
cleanup:
- SigGroupCleanup(de_ctx);
- SigCleanSignatures(de_ctx);
-
DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
DetectEngineCtxFree(de_ctx);
FlowShutdown();
end:
- SCFree(p);
+ PacketFree(p);
+ StatsThreadCleanup(&th_v);
return result;
}