Skip to content

Commit

Permalink
in_calyptia_fleet: fix memory leak from configuration file name.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed Nov 7, 2023
1 parent 8a0fac6 commit e5e293a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/in_calyptia_fleet/in_calyptia_fleet.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,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);
Expand Down

0 comments on commit e5e293a

Please sign in to comment.