diff options
author | 2022-10-11 09:28:24 -0400 | |
---|---|---|
committer | 2022-10-11 15:28:24 +0200 | |
commit | 26aae951e76fd4d110dce382791df34246e3a34e (patch) | |
tree | 6c4c8e02f4fd4bc43e6986f5f2e37982f4870a24 /plugin | |
parent | 006703c1b207c41543a244cf8e8bdc742d5a61cf (diff) | |
download | coredns-26aae951e76fd4d110dce382791df34246e3a34e.tar.gz coredns-26aae951e76fd4d110dce382791df34246e3a34e.tar.zst coredns-26aae951e76fd4d110dce382791df34246e3a34e.zip |
plugin/forward: fix ticker leak in golang (#5689)
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/forward/persistent.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/forward/persistent.go b/plugin/forward/persistent.go index 95d08e1e1..c53dea82f 100644 --- a/plugin/forward/persistent.go +++ b/plugin/forward/persistent.go @@ -45,6 +45,7 @@ func newTransport(addr string) *Transport { // connManagers manages the persistent connection cache for UDP and TCP. func (t *Transport) connManager() { ticker := time.NewTicker(defaultExpire) + defer ticker.Stop() Wait: for { select { |