From 6f2c553ebc3e7a96a11e7055c49ec303e4d3c826 Mon Sep 17 00:00:00 2001 From: Phillip Whelan Date: Thu, 11 Jan 2024 14:25:45 -0300 Subject: [PATCH] in_calyptia_fleet: release upstream conn in collect. (#8366) Signed-off-by: Phillip Whelan --- plugins/in_calyptia_fleet/in_calyptia_fleet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/in_calyptia_fleet/in_calyptia_fleet.c b/plugins/in_calyptia_fleet/in_calyptia_fleet.c index e5c0a66d703..f56f4d6b15c 100644 --- a/plugins/in_calyptia_fleet/in_calyptia_fleet.c +++ b/plugins/in_calyptia_fleet/in_calyptia_fleet.c @@ -1835,12 +1835,14 @@ static int in_calyptia_fleet_collect(struct flb_input_instance *ins, if (get_calyptia_fleet_id_by_name(ctx, u_conn, config) == -1) { flb_plg_error(ctx->ins, "unable to find fleet: %s", ctx->fleet_name); - goto conn_error; + goto calyptia_error; } } ret = get_calyptia_fleet_config(ctx, u_conn); +calyptia_error: + flb_upstream_conn_release(u_conn); conn_error: FLB_INPUT_RETURN(ret); }