From 5954a914572c78b668b0be1ac958c906a7e3acc9 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Mon, 27 Nov 2023 11:10:50 +0100 Subject: [PATCH] detect/filestore: fix memory leak on sig parsing Ticket: 6574 Introduced by commit c272a646c5ae739d18901776cc5a940afd3d3d38 --- src/detect-filestore.c | 1 + 1 file changed, 1 insertion(+) 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;