From edd5507ea4d59ecb743a9ee2ca7ae1376983f1bf Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Tue, 7 May 2024 10:17:33 +0200 Subject: [PATCH] tests: do not bother to free a null pointer Ticket: #7013 --- src/detect-icode.c | 2 -- src/detect-itype.c | 1 - 2 files changed, 3 deletions(-) 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; }