mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-01 14:56:30 +00:00
Add missing gitRepo close (#16896)
This commit is contained in:
parent
2fc5b08c42
commit
1f7187c973
@ -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…
Reference in New Issue
Block a user