From 0714d10889394652f8c1e0ef703d568c9274f2b2 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Mon, 5 Jun 2023 15:10:09 -0500 Subject: [PATCH] in_kubernetes_filter: fix leak on exception Signed-off-by: Eduardo Silva --- plugins/filter_kubernetes/kube_meta.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/filter_kubernetes/kube_meta.c b/plugins/filter_kubernetes/kube_meta.c index bd6a51979db..fbad2bb0248 100644 --- a/plugins/filter_kubernetes/kube_meta.c +++ b/plugins/filter_kubernetes/kube_meta.c @@ -373,6 +373,7 @@ static int get_meta_info_from_request(struct flb_kube *ctx, ret = refresh_token_if_needed(ctx); if (ret == -1) { flb_plg_error(ctx->ins, "failed to refresh token"); + flb_upstream_conn_release(u_conn); return -1; }