Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trie: fix two issues in trie iterator (#24539) #778

Merged
merged 3 commits into from
May 28, 2024
Merged

Conversation

0xmountaintop
Copy link

cherry-pick fb2ae8e

omerfirmak
omerfirmak previously approved these changes May 28, 2024
rjl493456442 and others added 2 commits May 28, 2024 19:23
* trie: fix memory leak in trie iterator

In the trie iterator, live nodes are tracked in a stack while iterating.
Popped node states should be explictly set to nil in order to get
garbage-collected.

* trie: fix empty trie iterator
@0xmountaintop 0xmountaintop merged commit 760f234 into develop May 28, 2024
@0xmountaintop 0xmountaintop deleted the upstream_24539 branch May 28, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants