Skip to content

Commit

Permalink
in_event_type: fix a resource leak on exception (CID 507968) (#9235)
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored Aug 15, 2024
1 parent 5b5d49e commit 1af833c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/in_event_type/event_type.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ static int send_traces(struct flb_input_instance *ins)
span_root = ctr_span_create(ctx, scope_span, "main", NULL);
if (!span_root) {
ctr_destroy(ctx);
ctr_id_destroy(span_id);
ctr_opts_exit(&opts);
return -1;
}
Expand Down

0 comments on commit 1af833c

Please sign in to comment.