diff --git a/torrent.go b/torrent.go index e50d4b4..7eafc1d 100644 --- a/torrent.go +++ b/torrent.go @@ -32,6 +32,8 @@ func gentrackers() { if err != nil { return } + defer trackersresponse.Body.Close() + trackers, err := ioutil.ReadAll(trackersresponse.Body) if err != nil { return