Skip to content

Commit

Permalink
tests: do not bother to free a null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber committed May 7, 2024
1 parent abb7424 commit fbfee2b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/detect-icode.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ static int DetectICodeParseTest08(void)
DetectU8Data *icd = DetectU8Parse("> 8 <> 20");
FAIL_IF_NOT_NULL(icd);

DetectICodeFree(NULL, icd);
PASS;
}

Expand All @@ -324,7 +323,6 @@ static int DetectICodeParseTest09(void)
DetectU8Data *icd = DetectU8Parse("8<<20");
FAIL_IF_NOT_NULL(icd);

DetectICodeFree(NULL, icd);
PASS;
}

Expand Down
1 change: 0 additions & 1 deletion src/detect-itype.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fbfee2b

Please sign in to comment.