Skip to content

Commit b778a42

Browse files
pwhelanedsiper
authored andcommitted
in_calyptia_fleet: consistent cleanup when failing to initliaze initial one time collector.
Signed-off-by: Phillip Whelan <phillip.whelan@chronosphere.io>
1 parent 7d2dd21 commit b778a42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/in_calyptia_fleet/in_calyptia_fleet.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2632,8 +2632,7 @@ static int in_calyptia_fleet_init(struct flb_input_instance *in,
26322632
config);
26332633
if (ctx->initial_fd == -1) {
26342634
flb_plg_error(ctx->ins, "could not initialize collector for fleet input plugin");
2635-
flb_upstream_destroy(ctx->u);
2636-
flb_free(ctx);
2635+
in_calyptia_fleet_destroy(ctx);
26372636
return -1;
26382637
}
26392638
flb_plg_info(ctx->ins, "updating initial configuration with oneshot interval");

0 commit comments

Comments
 (0)