Skip to content

[r3.4] db/state: fix btree cursor leak in debugIteratePrefixLatest#20488

Merged
AskAlexSharov merged 1 commit into
release/3.4from
alex/debugIterate_cursor_leak_34
Apr 11, 2026
Merged

[r3.4] db/state: fix btree cursor leak in debugIteratePrefixLatest#20488
AskAlexSharov merged 1 commit into
release/3.4from
alex/debugIterate_cursor_leak_34

Conversation

@AskAlexSharov
Copy link
Copy Markdown
Collaborator

Cherry-pick of #20468.

- Close btree cursor when `Next()` advances past the prefix boundary in
the FILE_CURSOR merge loop
- Drain heap on function return, closing any remaining btree cursors
@AskAlexSharov AskAlexSharov merged commit fbfd752 into release/3.4 Apr 11, 2026
20 checks passed
@AskAlexSharov AskAlexSharov deleted the alex/debugIterate_cursor_leak_34 branch April 11, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants