diff options
author | 2022-10-11 09:26:45 -0400 | |
---|---|---|
committer | 2022-10-11 15:26:45 +0200 | |
commit | c61e8f3dbc9a09fd7ea8bc4d567fa0f5dc8dcba9 (patch) | |
tree | b55e660ad27da9ade0e35bb014f1a530ca6790e1 /plugin | |
parent | 4ae811ad96c02a2ac06a2705b397685cb4a0661d (diff) | |
download | coredns-c61e8f3dbc9a09fd7ea8bc4d567fa0f5dc8dcba9.tar.gz coredns-c61e8f3dbc9a09fd7ea8bc4d567fa0f5dc8dcba9.tar.zst coredns-c61e8f3dbc9a09fd7ea8bc4d567fa0f5dc8dcba9.zip |
plugin/hosts: fix ticker leak in golang (#5690)
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/hosts/setup.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/hosts/setup.go b/plugin/hosts/setup.go index c256dc19a..128a365e1 100644 --- a/plugin/hosts/setup.go +++ b/plugin/hosts/setup.go @@ -26,6 +26,7 @@ func periodicHostsUpdate(h *Hosts) chan bool { go func() { ticker := time.NewTicker(h.options.reload) + defer ticker.Stop() for { select { case <-parseChan: |