Skip to content

Commit 1f7187c

Browse files
authored
Add missing gitRepo close (#16896)
1 parent 2fc5b08 commit 1f7187c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/repo/commit.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ func Diff(ctx *context.Context) {
278278
ctx.ServerError("Repo.GitRepo.GetCommit", err)
279279
return
280280
}
281+
defer gitRepo.Close()
281282
repoPath = ctx.Repo.Repository.WikiPath()
282283
} else {
283284
gitRepo = ctx.Repo.GitRepo

0 commit comments

Comments
 (0)