diff options
author | 2022-10-11 09:27:20 -0400 | |
---|---|---|
committer | 2022-10-11 15:27:20 +0200 | |
commit | 006703c1b207c41543a244cf8e8bdc742d5a61cf (patch) | |
tree | 5a906266f85c5fe46e0472e218e9bcd91a5a198d | |
parent | c61e8f3dbc9a09fd7ea8bc4d567fa0f5dc8dcba9 (diff) | |
download | coredns-006703c1b207c41543a244cf8e8bdc742d5a61cf.tar.gz coredns-006703c1b207c41543a244cf8e8bdc742d5a61cf.tar.zst coredns-006703c1b207c41543a244cf8e8bdc742d5a61cf.zip |
plugin/auto: fix ticker leak in golang (#5688)
-rw-r--r-- | plugin/auto/setup.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/auto/setup.go b/plugin/auto/setup.go index 38e8d26fe..1a7eee980 100644 --- a/plugin/auto/setup.go +++ b/plugin/auto/setup.go @@ -50,6 +50,7 @@ func setup(c *caddy.Controller) error { } go func() { ticker := time.NewTicker(a.loader.ReloadInterval) + defer ticker.Stop() for { select { case <-walkChan: |