From 5d77a3e5ff3e2da8c4b129096125d16fe1b70865 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 31 Aug 2021 00:22:11 +0200 Subject: [PATCH] Add missing gitRepo close --- routers/repo/commit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/repo/commit.go b/routers/repo/commit.go index bb98ab60ae365..fdfbe3402e981 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