diff --git a/src/detect-flow.c b/src/detect-flow.c index f2de380ef5..cf267a6e0e 100644 --- a/src/detect-flow.c +++ b/src/detect-flow.c @@ -422,7 +422,7 @@ int DetectFlowSetup (DetectEngineCtx *de_ctx, Signature *s, const char *flowstr) de_ctx, s, DETECT_FLOW, (SigMatchCtx *)fd, DETECT_SM_LIST_MATCH) == NULL) { goto error; } - } else if (fd != NULL) { + } else { DetectFlowFree(de_ctx, fd); }