• rjl493456442's avatar
    trie: fix two issues in trie iterator (#24539) · fb2ae8e9
    rjl493456442 authored
    * 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
    fb2ae8e9
iterator.go 21.1 KB