]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
tests: do not bother to free a null pointer
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 7 May 2024 08:17:33 +0000 (10:17 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 15 May 2024 15:03:50 +0000 (17:03 +0200)
Ticket: #7013

src/detect-icode.c
src/detect-itype.c

index 33d5beea4ebfef7e2e62a85c798d70582a2a528e..ab56553cc0c6ca6443dcb6d57488a68b82e735e8 100644 (file)
@@ -311,7 +311,6 @@ static int DetectICodeParseTest08(void)
     DetectU8Data *icd = DetectU8Parse("> 8 <> 20");
     FAIL_IF_NOT_NULL(icd);
 
-    DetectICodeFree(NULL, icd);
     PASS;
 }
 
@@ -324,7 +323,6 @@ static int DetectICodeParseTest09(void)
     DetectU8Data *icd = DetectU8Parse("8<<20");
     FAIL_IF_NOT_NULL(icd);
 
-    DetectICodeFree(NULL, icd);
     PASS;
 }
 
index 8a9af908836b0446e6ffb4c00ace0d4153f7b0a8..237d0548e6f1ed670bfafd9905a4ff60b7b2c2ce 100644 (file)
@@ -334,7 +334,6 @@ static int DetectITypeParseTest08(void)
     DetectU8Data *itd = NULL;
     itd = DetectITypeParse(NULL, "> 8 <> 20");
     FAIL_IF_NOT_NULL(itd);
-    DetectITypeFree(NULL, itd);
 
     PASS;
 }