Skip to content

Commit

Permalink
in_kubernetes_filter: fix leak on exception
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Jul 3, 2023
1 parent eed80a5 commit 0714d10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/filter_kubernetes/kube_meta.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0714d10

Please sign in to comment.