From: Philippe Antoine Date: Tue, 7 May 2024 08:17:33 +0000 (+0200) Subject: tests: do not bother to free a null pointer X-Git-Tag: suricata-7.0.6~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a5fe36bfc3b55c55a04e697647cc958a4dfce59;p=thirdparty%2Fsuricata.git tests: do not bother to free a null pointer Ticket: #7013 (cherry picked from commit edd5507ea4d59ecb743a9ee2ca7ae1376983f1bf) --- diff --git a/src/detect-icode.c b/src/detect-icode.c index 3a601c286d..7758bd9bae 100644 --- a/src/detect-icode.c +++ b/src/detect-icode.c @@ -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; } diff --git a/src/detect-itype.c b/src/detect-itype.c index d8168600f5..ac067ab355 100644 --- a/src/detect-itype.c +++ b/src/detect-itype.c @@ -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; }