diff options
Diffstat (limited to 'models/issue_user.go')
-rw-r--r-- | models/issue_user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_user.go b/models/issue_user.go index 024a3cccd9..11d47dd0a6 100644 --- a/models/issue_user.go +++ b/models/issue_user.go @@ -69,7 +69,7 @@ func updateIssueUserByAssignee(e Engine, issue *Issue) (err error) { // UpdateIssueUserByAssignee updates issue-user relation for assignee. func UpdateIssueUserByAssignee(issue *Issue) (err error) { sess := x.NewSession() - defer sessionRelease(sess) + defer sess.Close() if err = sess.Begin(); err != nil { return err } |