From efc19868c615d74209ddebad4ea90a52d9490322 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 11 Oct 2025 07:43:06 +0200 Subject: [PATCH] unittests: clean up memory for detect rpc tests --- src/detect-rpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/detect-rpc.c b/src/detect-rpc.c index c6b01b4fc6..0b55165bad 100644 --- a/src/detect-rpc.c +++ b/src/detect-rpc.c @@ -517,11 +517,11 @@ static int DetectRpcTestSig01(void) FAIL_IF(PacketAlertCheck(p, 4) == 0); FAIL_IF(PacketAlertCheck(p, 5) > 0); - DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); - DetectEngineCtxFree(de_ctx); - UTHFreePackets(&p, 1); + DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); + DetectEngineCtxFree(de_ctx); + StatsThreadCleanup(&th_v); PASS; }