diff --git a/plugins/in_event_type/event_type.c b/plugins/in_event_type/event_type.c index a6530de82b3..08d97c13774 100644 --- a/plugins/in_event_type/event_type.c +++ b/plugins/in_event_type/event_type.c @@ -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; }