From 4c95e8807b8b0168901175f1acee8ebef59a7a73 Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Thu, 29 Aug 2024 16:49:52 +0200 Subject: [PATCH] out_stackdriver: fixed a memory leak Signed-off-by: Leonardo Alminana --- plugins/out_stackdriver/stackdriver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/out_stackdriver/stackdriver.c b/plugins/out_stackdriver/stackdriver.c index c7e6d925bd6..903bffce98d 100644 --- a/plugins/out_stackdriver/stackdriver.c +++ b/plugins/out_stackdriver/stackdriver.c @@ -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);