]> 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)
committerPhilippe Antoine <pantoine@oisf.net>
Fri, 17 May 2024 06:42:25 +0000 (08:42 +0200)
Ticket: #7013
(cherry picked from commit edd5507ea4d59ecb743a9ee2ca7ae1376983f1bf)

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

index 3a601c286df7054afeb4702de665fea2136c7b54..7758bd9bae05bb6879c5d6c95463fc45c9c22f52 100644 (file)
@@ -314,7 +314,6 @@ static int DetectICodeParseTest08(void)
     DetectU8Data *icd = DetectU8Parse("> 8 <> 20");
     FAIL_IF_NOT_NULL(icd);
 
-    DetectICodeFree(NULL, icd);
     PASS;
 }
 
@@ -327,7 +326,6 @@ static int DetectICodeParseTest09(void)
     DetectU8Data *icd = DetectU8Parse("8<<20");
     FAIL_IF_NOT_NULL(icd);
 
-    DetectICodeFree(NULL, icd);
     PASS;
 }
 
index d8168600f5d2ab180ed3b4466b92c8a5310b4c19..ac067ab355b530c3acf1d2b85e9383d0a1f24433 100644 (file)
@@ -336,7 +336,6 @@ static int DetectITypeParseTest08(void)
     DetectU8Data *itd = NULL;
     itd = DetectITypeParse(NULL, "> 8 <> 20");
     FAIL_IF_NOT_NULL(itd);
-    DetectITypeFree(NULL, itd);
 
     PASS;
 }