Skip to content

Commit 4c95e88

Browse files
Leonardo Alminanaedsiper
authored andcommitted
out_stackdriver: fixed a memory leak
Signed-off-by: Leonardo Alminana <[email protected]>
1 parent 66a9cd1 commit 4c95e88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/out_stackdriver/stackdriver.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,6 +2370,8 @@ static flb_sds_t stackdriver_format(struct flb_stackdriver *ctx,
23702370
flb_plg_error(ctx->ins, "the type of payload labels should be map");
23712371
flb_sds_destroy(operation_id);
23722372
flb_sds_destroy(operation_producer);
2373+
flb_sds_destroy(source_location_file);
2374+
flb_sds_destroy(source_location_function);
23732375

23742376
if (trace_extracted == FLB_TRUE) {
23752377
flb_sds_destroy(trace);

0 commit comments

Comments
 (0)