Skip to content

Commit

Permalink
trie: fix flaw in stacktrie pool reuse (#21699)
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Oct 13, 2020
1 parent 94d1f58 commit 348c3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trie/stacktrie.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (st *StackTrie) Update(key, value []byte) {
func (st *StackTrie) Reset() {
st.db = nil
st.key = st.key[:0]
st.val = st.val[:0]
st.val = nil
for i := range st.children {
st.children[i] = nil
}
Expand Down

0 comments on commit 348c3bc

Please sign in to comment.