detect/filestore: fix memory leak on sig parsing

Ticket: 6574

Introduced by commit c272a646c5
pull/9895/head
Philippe Antoine 1 year ago
parent d005fff7b9
commit 5954a91457

@ -455,6 +455,7 @@ static int DetectFilestoreSetup (DetectEngineCtx *de_ctx, Signature *s, const ch
if (SigMatchAppendSMToList( if (SigMatchAppendSMToList(
de_ctx, s, DETECT_FILESTORE, (SigMatchCtx *)fd, g_file_match_list_id) == NULL) { de_ctx, s, DETECT_FILESTORE, (SigMatchCtx *)fd, g_file_match_list_id) == NULL) {
DetectFilestoreFree(de_ctx, fd);
goto error; goto error;
} }
s->filestore_ctx = fd; s->filestore_ctx = fd;

Loading…
Cancel
Save