Skip to content

Commit

Permalink
Add missing gitRepo close (go-gitea#16896)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Aug 31, 2021
1 parent 2fc5b08 commit 1f7187c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routers/repo/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ func Diff(ctx *context.Context) {
ctx.ServerError("Repo.GitRepo.GetCommit", err)
return
}
defer gitRepo.Close()
repoPath = ctx.Repo.Repository.WikiPath()
} else {
gitRepo = ctx.Repo.GitRepo
Expand Down

0 comments on commit 1f7187c

Please sign in to comment.