gocsaf / csaf

Tools to download or provide CSAF (Common Security Advisory Framework) documents.
https://csaf.io
40 stars 23 forks source link

Downloader: Close body streams to prevent Go routine leaks #591

Open s-l-teichmann opened 10 hours ago

s-l-teichmann commented 10 hours ago

During the implementation of the downloading in ISDuBA we have detected a Go routine leak. See https://github.com/ISDuBA/ISDuBA/pull/448 for details. The downloader is prone to this, too. The checker may also be. So we should fix this.