mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 10:48:37 +00:00
Add missing gitRepo close (#16896)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user