diff options
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/org.go b/models/org.go index 5c2d89a78d..b4cbabcb53 100644 --- a/models/org.go +++ b/models/org.go @@ -127,7 +127,7 @@ func CreateOrganization(org, owner *User) (err error) { org.Type = UserTypeOrganization sess := x.NewSession() - defer sessionRelease(sess) + defer sess.Close() if err = sess.Begin(); err != nil { return err } @@ -481,7 +481,7 @@ func RemoveOrgUser(orgID, userID int64) error { } sess := x.NewSession() - defer sessionRelease(sess) + defer sess.Close() if err := sess.Begin(); err != nil { return err } |