From 1d38439a30eb0363508ea3ab88b17ecad21f3b2d Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 13 Aug 2024 14:12:45 -0600 Subject: [PATCH] decode_opentelemetry: release context on exception Signed-off-by: Eduardo Silva --- src/ctr_decode_opentelemetry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ctr_decode_opentelemetry.c b/src/ctr_decode_opentelemetry.c index 067e88d..0e845e1 100644 --- a/src/ctr_decode_opentelemetry.c +++ b/src/ctr_decode_opentelemetry.c @@ -532,6 +532,7 @@ int ctr_decode_opentelemetry_create(struct ctrace **out_ctr, otel_resource_span = service_request->resource_spans[resource_span_index]; if (otel_resource_span == NULL) { opentelemetry__proto__collector__trace__v1__export_trace_service_request__free_unpacked(service_request, NULL); + ctr_destroy(ctr); return -1; }