Skip to content

Commit 1af833c

Browse files
authored
in_event_type: fix a resource leak on exception (CID 507968) (#9235)
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent 5b5d49e commit 1af833c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugins/in_event_type/event_type.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ static int send_traces(struct flb_input_instance *ins)
274274
span_root = ctr_span_create(ctx, scope_span, "main", NULL);
275275
if (!span_root) {
276276
ctr_destroy(ctx);
277+
ctr_id_destroy(span_id);
277278
ctr_opts_exit(&opts);
278279
return -1;
279280
}

0 commit comments

Comments
 (0)