tests: do not bother to free a null pointer

Ticket: #7013
pull/11084/head
Philippe Antoine 2 years ago committed by Victor Julien
parent 4c33e64d56
commit edd5507ea4

@ -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;
}

@ -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;
}

Loading…
Cancel
Save