Browse Source

Add missing gitRepo close (#16896)

tags/v1.14.7
6543 4 years ago committed by GitHub
parent
commit
1f7187c973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      routers/repo/commit.go

1
routers/repo/commit.go

@ -278,6 +278,7 @@ func Diff(ctx *context.Context) {
ctx.ServerError("Repo.GitRepo.GetCommit", err) ctx.ServerError("Repo.GitRepo.GetCommit", err)
return return
} }
defer gitRepo.Close()
repoPath = ctx.Repo.Repository.WikiPath() repoPath = ctx.Repo.Repository.WikiPath()
} else { } else {
gitRepo = ctx.Repo.GitRepo gitRepo = ctx.Repo.GitRepo

Loading…
Cancel
Save