From 5a5fe36bfc3b55c55a04e697647cc958a4dfce59 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 (cherry picked from commit edd5507ea4d59ecb743a9ee2ca7ae1376983f1bf) --- 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 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; } -- 2.47.2