From 3550dd59ff61fc51e2acd5b2f9f417b8174a2270 Mon Sep 17 00:00:00 2001 From: Phillip Whelan Date: Mon, 6 Nov 2023 12:36:22 -0300 Subject: [PATCH] in_calyptia_fleet: fix memory leak from configuration file name. Signed-off-by: Phillip Whelan --- plugins/in_calyptia_fleet/in_calyptia_fleet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/in_calyptia_fleet/in_calyptia_fleet.c b/plugins/in_calyptia_fleet/in_calyptia_fleet.c index 41bd0da1285..72bae1f67fe 100644 --- a/plugins/in_calyptia_fleet/in_calyptia_fleet.c +++ b/plugins/in_calyptia_fleet/in_calyptia_fleet.c @@ -609,7 +609,7 @@ static int execute_reload(struct flb_in_calyptia_fleet_config *ctx, flb_sds_t cf reload = flb_calloc(1, sizeof(struct reload_ctx)); reload->flb = flb; - reload->cfg_path = flb_sds_create(cfgpath); + reload->cfg_path = cfgpath; if (ctx->collect_fd > 0) { flb_input_collector_pause(ctx->collect_fd, ctx->ins);