From: Giuseppe Longo Date: Tue, 3 Apr 2018 08:45:34 +0000 (+0200) Subject: tests/detect-engine-hsbd: deinit det_ctx threads X-Git-Tag: suricata-4.1.0-rc1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28849509b212ac6610b4d6d48eb0d2b1ad251cf1;p=thirdparty%2Fsuricata.git tests/detect-engine-hsbd: deinit det_ctx threads --- diff --git a/src/tests/detect-engine-hsbd.c b/src/tests/detect-engine-hsbd.c index bd1f678fb4..c713bfd08e 100644 --- a/src/tests/detect-engine-hsbd.c +++ b/src/tests/detect-engine-hsbd.c @@ -136,6 +136,7 @@ libhtp:\n\ FAIL_IF(!(PacketAlertCheck(p2, 1))); AppLayerParserThreadCtxFree(alp_tctx); + DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); DetectEngineCtxFree(de_ctx); HTPFreeConfig(); @@ -260,6 +261,7 @@ libhtp:\n\ FAIL_IF(!(PacketAlertCheck(p2, 1))); AppLayerParserThreadCtxFree(alp_tctx); + DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); DetectEngineCtxFree(de_ctx); HTPFreeConfig(); @@ -384,6 +386,7 @@ libhtp:\n\ FAIL_IF(!(PacketAlertCheck(p2, 1))); AppLayerParserThreadCtxFree(alp_tctx); + DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); DetectEngineCtxFree(de_ctx); HTPFreeConfig(); @@ -508,6 +511,7 @@ libhtp:\n\ FAIL_IF(!(PacketAlertCheck(p2, 1))); AppLayerParserThreadCtxFree(alp_tctx); + DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); DetectEngineCtxFree(de_ctx); HTPFreeConfig(); @@ -632,6 +636,7 @@ libhtp:\n\ FAIL_IF(!(PacketAlertCheck(p2, 1))); AppLayerParserThreadCtxFree(alp_tctx); + DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); DetectEngineCtxFree(de_ctx); HTPFreeConfig(); @@ -760,6 +765,7 @@ libhtp:\n\ FAIL_IF(!(PacketAlertCheck(p2, 1))); AppLayerParserThreadCtxFree(alp_tctx); + DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); DetectEngineCtxFree(de_ctx); HTPFreeConfig(); @@ -887,6 +893,7 @@ libhtp:\n\ FAIL_IF(!(PacketAlertCheck(p2, 1))); AppLayerParserThreadCtxFree(alp_tctx); + DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); DetectEngineCtxFree(de_ctx); HTPFreeConfig(); @@ -1014,6 +1021,7 @@ libhtp:\n\ FAIL_IF(!(PacketAlertCheck(p2, 1))); AppLayerParserThreadCtxFree(alp_tctx); + DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); DetectEngineCtxFree(de_ctx); HTPFreeConfig(); @@ -1141,6 +1149,7 @@ libhtp:\n\ FAIL_IF(!(PacketAlertCheck(p2, 1))); AppLayerParserThreadCtxFree(alp_tctx); + DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); DetectEngineCtxFree(de_ctx); HTPFreeConfig(); @@ -1265,6 +1274,7 @@ libhtp:\n\ FAIL_IF(!(PacketAlertCheck(p2, 1))); AppLayerParserThreadCtxFree(alp_tctx); + DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); DetectEngineCtxFree(de_ctx); HTPFreeConfig(); @@ -1388,6 +1398,7 @@ libhtp:\n\ FAIL_IF(!(PacketAlertCheck(p2, 1))); AppLayerParserThreadCtxFree(alp_tctx); + DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx); DetectEngineCtxFree(de_ctx); HTPFreeConfig();