Skip to content

Commit

Permalink
decode_opentelemetry: release context on exception
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Aug 13, 2024
1 parent adfb348 commit 1d38439
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ctr_decode_opentelemetry.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1d38439

Please sign in to comment.