Skip to content

Commit

Permalink
Update memiavl/import.go
Browse files Browse the repository at this point in the history
Co-authored-by: mmsqe <mavis@crypto.com>
Signed-off-by: yihuang <huang@crypto.com>
  • Loading branch information
yihuang and mmsqe committed May 24, 2023
1 parent 598f5ed commit e5ac639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memiavl/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (i *importer) Add(n *iavl.ExportNode) error {
}
nodeHash := node.Hash()

// remove unnesserary reference to avoid memory leak
// remove unnecessary reference to avoid memory leak
node.left = nil
node.right = nil

Expand Down

0 comments on commit e5ac639

Please sign in to comment.