summaryrefslogtreecommitdiffstats
path: root/models/migrations/v82.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v82.go')
-rw-r--r--models/migrations/v82.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/migrations/v82.go b/models/migrations/v82.go
index 3fb4b6c59e..2daa86ab07 100644
--- a/models/migrations/v82.go
+++ b/models/migrations/v82.go
@@ -91,6 +91,7 @@ func fixReleaseSha1OnReleaseTable(x *xorm.Engine) error {
if err != nil {
return err
}
+ defer gitRepo.Close()
gitRepoCache[release.RepoID] = gitRepo
}