mirror of
1
Fork 0

Close git.Repository when GetRepoFileBlob returns

This commit is contained in:
Mai-Lapyst 2024-03-27 18:25:37 +01:00
parent 2b6546adc9
commit 4c7cb0a5d2
No known key found for this signature in database
GPG Key ID: F88D929C09E239F8
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ func ProcessorHelper() *markup.ProcessorHelper {
if err != nil {
return nil, err
}
defer gitRepo.Close()
commit, err := gitRepo.GetCommit(commitSha)
if err != nil {