util/mime: fix memory leak

Fix memory leak at util-decode-mime:MimeDecInitParser, which
root cause is not-freeing allocated memory for mimeMsg

Bug: #6745
pull/10359/head
Alexey Simakov 2 years ago committed by Victor Julien
parent 7e4dba7dfb
commit 231c892bef

@ -2432,6 +2432,7 @@ MimeDecParseState * MimeDecInitParser(void *data,
PushStack(state->stack);
if (state->stack->top == NULL) {
SCFree(state->stack);
SCFree(state->msg);
SCFree(state);
return NULL;
}

Loading…
Cancel
Save