From b66592a8b213b36df37b1864a46ac40bca046f7b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 10 Oct 2025 20:52:53 +0200 Subject: [PATCH] unittests: clean up memory for detect flowint tests --- src/detect-flowint.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/detect-flowint.c b/src/detect-flowint.c index 758f79f0d8..10b12b9dd3 100644 --- a/src/detect-flowint.c +++ b/src/detect-flowint.c @@ -1170,7 +1170,7 @@ static int DetectFlowintTestPacket01Real(void) UTHFreeFlow(f); DetectEngineThreadCtxDeinit(&th_v,(void *) det_ctx); DetectEngineCtxFree(de_ctx); - + StatsThreadCleanup(&th_v); PASS; } @@ -1245,6 +1245,7 @@ static int DetectFlowintTestPacket02Real(void) UTHFreeFlow(f); DetectEngineThreadCtxDeinit(&th_v,(void *) det_ctx); DetectEngineCtxFree(de_ctx); + StatsThreadCleanup(&th_v); PASS; } @@ -1308,6 +1309,7 @@ static int DetectFlowintTestPacket03Real(void) UTHFreeFlow(f); DetectEngineThreadCtxDeinit(&th_v,(void *) det_ctx); DetectEngineCtxFree(de_ctx); + StatsThreadCleanup(&th_v); PASS; }