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; }