diff --git a/retrievalprovider/httpretrieval/server.go b/retrievalprovider/httpretrieval/server.go index eaae579c..ac3785c0 100644 --- a/retrievalprovider/httpretrieval/server.go +++ b/retrievalprovider/httpretrieval/server.go @@ -60,6 +60,7 @@ func (s *Server) RetrievalByPieceCID(w http.ResponseWriter, r *http.Request) { badResponse(w, http.StatusNotFound, err) return } + defer mountReader.Close() // nolint serveContent(w, r, mountReader, log) log.Info("end retrieval deal")