diff --git a/src/tests/detect-http-header.c b/src/tests/detect-http-header.c index 9529c3a80e..9b494c956d 100644 --- a/src/tests/detect-http-header.c +++ b/src/tests/detect-http-header.c @@ -181,6 +181,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -278,6 +279,7 @@ static int DetectHttpHeaderTest07(void) FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); PASS; } @@ -400,6 +402,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -524,6 +527,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -647,6 +651,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -745,6 +750,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -843,6 +849,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -942,6 +949,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -1026,6 +1034,7 @@ static int DetectHttpHeaderTest28(void) StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -1110,6 +1119,7 @@ static int DetectHttpHeaderTest29(void) StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -1194,6 +1204,7 @@ static int DetectHttpHeaderTest30(void) StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -1313,6 +1324,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -1406,6 +1418,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -1499,6 +1512,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -1592,6 +1606,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -1685,6 +1700,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -1778,6 +1794,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -1871,6 +1888,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -1964,6 +1982,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -2057,6 +2076,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -2150,6 +2170,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -2243,6 +2264,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -2336,6 +2358,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -2429,6 +2452,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -2522,6 +2546,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -2615,6 +2640,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -2708,6 +2734,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -2801,6 +2828,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p, 1); + StatsThreadCleanup(&th_v); return result; } @@ -2920,6 +2948,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -3039,6 +3068,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -3158,6 +3188,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -3277,6 +3308,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -3396,6 +3428,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -3515,6 +3548,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -3634,6 +3668,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -3753,6 +3788,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -3873,6 +3909,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -3996,6 +4033,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -4150,6 +4188,7 @@ end: FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); return result; } @@ -4249,6 +4288,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); + StatsThreadCleanup(&th_v); return result; } @@ -4349,6 +4389,7 @@ end: StreamTcpFreeConfig(true); FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); + StatsThreadCleanup(&th_v); return result; } @@ -4447,6 +4488,7 @@ static int DetectEngineHttpHeaderTest33(void) FLOW_DESTROY(&f); UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); + StatsThreadCleanup(&th_v); PASS; } @@ -4561,6 +4603,7 @@ static int DetectEngineHttpHeaderTest34(void) UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); UTHFreePackets(&p3, 1); + StatsThreadCleanup(&th_v); PASS; } @@ -4675,6 +4718,7 @@ static int DetectEngineHttpHeaderTest35(void) UTHFreePackets(&p1, 1); UTHFreePackets(&p2, 1); UTHFreePackets(&p3, 1); + StatsThreadCleanup(&th_v); PASS; }