From f00951b8750301e9c57b3957df4939238619d56c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 10 Oct 2025 20:39:23 +0200 Subject: [PATCH] unittests: clean up memory for base64_decode tests --- src/detect-base64-decode.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/detect-base64-decode.c b/src/detect-base64-decode.c index 6381babeb2..c5dc658073 100644 --- a/src/detect-base64-decode.c +++ b/src/detect-base64-decode.c @@ -404,13 +404,12 @@ end: DetectEngineThreadCtxDeinit(&tv, det_ctx); } if (de_ctx != NULL) { - SigCleanSignatures(de_ctx); - SigGroupCleanup(de_ctx); DetectEngineCtxFree(de_ctx); } if (p != NULL) { UTHFreePacket(p); } + StatsThreadCleanup(&tv); return retval; } @@ -471,6 +470,7 @@ end: if (p != NULL) { UTHFreePacket(p); } + StatsThreadCleanup(&tv); return retval; } @@ -520,13 +520,12 @@ end: DetectEngineThreadCtxDeinit(&tv, det_ctx); } if (de_ctx != NULL) { - SigCleanSignatures(de_ctx); - SigGroupCleanup(de_ctx); DetectEngineCtxFree(de_ctx); } if (p != NULL) { UTHFreePacket(p); } + StatsThreadCleanup(&tv); return retval; } @@ -581,13 +580,12 @@ end: DetectEngineThreadCtxDeinit(&tv, det_ctx); } if (de_ctx != NULL) { - SigCleanSignatures(de_ctx); - SigGroupCleanup(de_ctx); DetectEngineCtxFree(de_ctx); } if (p != NULL) { UTHFreePacket(p); } + StatsThreadCleanup(&tv); return retval; }