detect/xbits: remove unneeded cast to check ptr validity

pull/14262/head
Shivani Bhardwaj 12 months ago committed by Victor Julien
parent dad883406d
commit 13c8724ae0

@ -455,10 +455,10 @@ int DetectXbitSetup (DetectEngineCtx *de_ctx, Signature *s, const char *rawstr)
static void DetectXbitFree (DetectEngineCtx *de_ctx, void *ptr)
{
DetectXbitsData *fd = (DetectXbitsData *)ptr;
if (fd == NULL)
if (ptr == NULL)
return;
DetectXbitsData *fd = (DetectXbitsData *)ptr;
VarNameStoreUnregister(fd->idx, fd->type);
SCFree(fd);

Loading…
Cancel
Save