diff --git a/src/detect-filestore.c b/src/detect-filestore.c index 5e22e4c6cde5..07bbd91ff199 100644 --- a/src/detect-filestore.c +++ b/src/detect-filestore.c @@ -455,6 +455,7 @@ static int DetectFilestoreSetup (DetectEngineCtx *de_ctx, Signature *s, const ch if (SigMatchAppendSMToList( de_ctx, s, DETECT_FILESTORE, (SigMatchCtx *)fd, g_file_match_list_id) == NULL) { + DetectFilestoreFree(de_ctx, fd); goto error; } s->filestore_ctx = fd;