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-8.0.0-beta1~1323 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edd5507ea4d59ecb743a9ee2ca7ae1376983f1bf;p=thirdparty%2Fsuricata.git tests: do not bother to free a null pointer Ticket: #7013 --- diff --git a/src/detect-icode.c b/src/detect-icode.c index 33d5beea4e..ab56553cc0 100644 --- a/src/detect-icode.c +++ b/src/detect-icode.c @@ -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; } diff --git a/src/detect-itype.c b/src/detect-itype.c index 8a9af90883..237d0548e6 100644 --- a/src/detect-itype.c +++ b/src/detect-itype.c @@ -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; }