From 1af833c506972473b4a5e0616400dbc7855cea0c Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Fri, 16 Aug 2024 02:15:36 +0900 Subject: [PATCH] in_event_type: fix a resource leak on exception (CID 507968) (#9235) Signed-off-by: Hiroshi Hatake --- plugins/in_event_type/event_type.c | 1 + 1 file changed, 1 insertion(+) 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; }