diff options
author | 6543 | 2021-08-31 08:12:37 +0200 |
---|---|---|
committer | GitHub | 2021-08-31 14:12:37 +0800 |
commit | 1f7187c97340ef795c655121cb70cfa8cd7a6f4f (patch) | |
tree | db1c68221fc1118ce6aa3f17752406b1277ed2df | |
parent | 2fc5b08c42b404996a2ef77eafcc7323625bba2d (diff) |
Add missing gitRepo close (#16896)
-rw-r--r-- | routers/repo/commit.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index bb98ab60a..fdfbe3402 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -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 |