Skip to content

Commit 0d33c17

Browse files
ShelbyZedsiper
authored andcommitted
filter_kubernetes: destroy upstream and TLS context on happy path exit
Signed-off-by: Shelby Hagman <shelbyzh@amazon.com>
1 parent 2b2f2a4 commit 0d33c17

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plugins/filter_kubernetes/kubernetes_aws.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ int fetch_pod_service_map(struct flb_kube *ctx, char *api_server_url,
298298
#endif
299299
flb_upstream_conn_recycle(u_conn, FLB_FALSE);
300300
flb_upstream_conn_release(u_conn);
301+
flb_upstream_destroy(ctx->aws_pod_association_upstream);
302+
flb_tls_destroy(ctx->aws_pod_association_tls);
303+
ctx->aws_pod_association_upstream = NULL;
304+
ctx->aws_pod_association_tls = NULL;
301305
}
302306
return 0;
303307
}

0 commit comments

Comments
 (0)