diff options
Diffstat (limited to 'models/repo_editor.go')
-rw-r--r-- | models/repo_editor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo_editor.go b/models/repo_editor.go index 40898dd4c2..720e071625 100644 --- a/models/repo_editor.go +++ b/models/repo_editor.go @@ -401,7 +401,7 @@ func DeleteUploads(uploads ...*Upload) (err error) { } sess := x.NewSession() - defer sessionRelease(sess) + defer sess.Close() if err = sess.Begin(); err != nil { return err } |