mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 14:43:52 +03:00
Close git.Repository when GetRepoFileBlob returns
This commit is contained in:
parent
2b6546adc9
commit
4c7cb0a5d2
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ func ProcessorHelper() *markup.ProcessorHelper {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
defer gitRepo.Close()
|
||||||
|
|
||||||
commit, err := gitRepo.GetCommit(commitSha)
|
commit, err := gitRepo.GetCommit(commitSha)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue