Fix session cleanup on error paths
Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
func loginArea(ctx *gin.Context) {
|
||||
ss := session.Attach(ctx)
|
||||
defer ss.Finalize()
|
||||
defer ss.FinalizeOrRollback()
|
||||
|
||||
ss.Respond(ghomeschema.LoginAreaResp{
|
||||
Code: 0,
|
||||
|
||||
Reference in New Issue
Block a user