Browse Source

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

tags/v1.9.5
zeripath 4 years ago
parent
commit
c1152b15fe
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      routers/repo/download.go

+ 5
- 0
routers/repo/download.go View File

if err != nil { if err != nil {
return err return err
} }
defer func() {
if err = lfsDataRc.Close(); err != nil {
log.Error("ServeBlobOrLFS: Close: %v", err)
}
}()
return ServeData(ctx, ctx.Repo.TreePath, lfsDataRc) return ServeData(ctx, ctx.Repo.TreePath, lfsDataRc)
} }



Loading…
Cancel
Save