]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
unittests: clean up memory for bytemath tests
authorVictor Julien <vjulien@oisf.net>
Fri, 10 Oct 2025 18:36:24 +0000 (20:36 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 14 Oct 2025 17:40:56 +0000 (19:40 +0200)
src/detect-bytemath.c

index fe88d69e4aefe960b991bee2cfc7ab1d32cbae65..2ecaff646a5aa1f39ebc4c434310a4ca591d6ab7 100644 (file)
@@ -896,7 +896,7 @@ static int DetectByteMathPacket01(void)
 
     FLOW_DESTROY(&f);
     UTHFreePacket(p);
-
+    StatsThreadCleanup(&tv);
     PASS;
 }
 
@@ -998,6 +998,7 @@ static int DetectByteMathPacket02(void)
     FLOW_DESTROY(&f);
     UTHFreePacket(p);
 
+    StatsThreadCleanup(&tv);
     PASS;
 }