go-spatial / tegola

Tegola is a Mapbox Vector Tile server written in Go
http://tegola.io/
MIT License
1.26k stars 193 forks source link

Leaking file descriptors from config.Load #803

Open ear7h opened 2 years ago

ear7h commented 2 years ago

I think the following function is leaking file descriptors by not calling Close on the http request or opened file:

https://github.com/go-spatial/tegola/blob/ac82d5ffccd23991381678cbf5e531fec6806896/config/config.go#L285-L320