Skip to content

Commit

Permalink
fix possible iterator leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Termina1 committed Dec 24, 2024
1 parent 18a8501 commit a21f201
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (orm *ORM) Save(ctx context.Context, objs ...NativeObject) (err error) {
cid := rdx.IDFromZipBytes(it.Value())
fields, e := orm.Host.ClassFields(cid)
if e != nil {
_ = it.Close()
return e
}
var changes protocol.Records
Expand Down

0 comments on commit a21f201

Please sign in to comment.