Bläddra i källkod

Add missed close in ServeBlobLFS (#8527) (#8543)

tags/v1.9.5
zeripath 4 år sedan
förälder
incheckning
c1152b15fe
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5
    0
      routers/repo/download.go

+ 5
- 0
routers/repo/download.go Visa fil

@@ -84,6 +84,11 @@ func ServeBlobOrLFS(ctx *context.Context, blob *git.Blob) error {
if err != nil {
return err
}
defer func() {
if err = lfsDataRc.Close(); err != nil {
log.Error("ServeBlobOrLFS: Close: %v", err)
}
}()
return ServeData(ctx, ctx.Repo.TreePath, lfsDataRc)
}


Laddar…
Avbryt
Spara