eve: fix memory leak in metadata

Fixes #4205

(cherry picked from commit 35f6c80bbf)
pull/5962/head
Philippe Antoine 5 years ago committed by Victor Julien
parent 2c9a2cc895
commit 53793b9eee

@ -86,6 +86,7 @@ static int MetadataJson(ThreadVars *tv, JsonMetadataLogThread *aft, const Packet
EveAddCommonOptions(&aft->json_output_ctx->cfg, p, p->flow, js);
OutputJsonBuilderBuffer(js, aft->file_ctx, &aft->json_buffer);
jb_free(js);
return TM_ECODE_OK;
}

Loading…
Cancel
Save