summaryrefslogtreecommitdiffstats
path: root/modules/repofiles/blob.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repofiles/blob.go')
-rw-r--r--modules/repofiles/blob.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/repofiles/blob.go b/modules/repofiles/blob.go
index e9d85a0dcf..60a05e280e 100644
--- a/modules/repofiles/blob.go
+++ b/modules/repofiles/blob.go
@@ -17,6 +17,7 @@ func GetBlobBySHA(repo *models.Repository, sha string) (*api.GitBlobResponse, er
if err != nil {
return nil, err
}
+ defer gitRepo.Close()
gitBlob, err := gitRepo.GetBlob(sha)
if err != nil {
return nil, err