output: fix leak in case of alloc error

CID: 1638290
pull/13049/head
Philippe Antoine 7 months ago committed by Victor Julien
parent 85f2f597f1
commit 128ee9ba46

@ -420,6 +420,7 @@ static OutputInitResult OutputFilestoreLogInitCtx(SCConfNode *conf)
OutputCtx *output_ctx = SCCalloc(1, sizeof(OutputCtx));
if (unlikely(output_ctx == NULL)) {
SCFree(ctx->xff_cfg);
SCFree(ctx);
return result;
}

Loading…
Cancel
Save