소스 검색

Add missed close in ServeBlobLFS (#8527)

tags/v1.11.0-rc1
zeripath 4 년 전
부모
커밋
e1505d6250
No account linked to committer's email address
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5
    0
      routers/repo/download.go

+ 5
- 0
routers/repo/download.go 파일 보기

@@ -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)
}


Loading…
취소
저장