Skip to content

Commit

Permalink
etl: cursor leak (#13299)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Jan 2, 2025
1 parent 68694ca commit e525deb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erigon-lib/etl/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ func (c *Collector) Load(db kv.RwTx, toBucket string, loadFunc LoadFunc, args Tr
if err != nil {
return err
}
defer cursor.Close()
var errLast error
lastKey, _, errLast = cursor.Last()
if errLast != nil {
Expand Down

0 comments on commit e525deb

Please sign in to comment.