Skip to content

Commit

Permalink
out_stackdriver: fixed a memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
  • Loading branch information
leonardo-albertovich authored and edsiper committed Aug 29, 2024
1 parent 66a9cd1 commit 4c95e88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/out_stackdriver/stackdriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2370,6 +2370,8 @@ static flb_sds_t stackdriver_format(struct flb_stackdriver *ctx,
flb_plg_error(ctx->ins, "the type of payload labels should be map");
flb_sds_destroy(operation_id);
flb_sds_destroy(operation_producer);
flb_sds_destroy(source_location_file);
flb_sds_destroy(source_location_function);

if (trace_extracted == FLB_TRUE) {
flb_sds_destroy(trace);
Expand Down

0 comments on commit 4c95e88

Please sign in to comment.