From 1f7187c97340ef795c655121cb70cfa8cd7a6f4f Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 31 Aug 2021 08:12:37 +0200 Subject: [PATCH] Add missing gitRepo close (#16896) --- routers/repo/commit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/repo/commit.go b/routers/repo/commit.go index bb98ab60ae..fdfbe3402e 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