HomePhabricator

[Radix] Have the radix tree cleanup after itself

Authored by deadalnix on Jan 22 2019, 00:30.

Description

[Radix] Have the radix tree cleanup after itself

Summary: So far, the tree would leak its internals instead of freeing them properly. This patch ensures that the tree will cleanup after itself properly.

Test Plan:

../configure --with-sanitizers=address
make src/test/test_bitcoin
./src/test/test_bitcoin -t radix_tests

Checks that there are no more leaks.

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: jasonbcox, teamcity, schancel

Differential Revision: https://reviews.bitcoinabc.org/D2385

Details

Committed
deadalnixJan 31 2019, 12:21
Pushed
deadalnixJan 31 2019, 12:21
Reviewer
Restricted Project
Differential Revision
D2385: [Radix] Have the radix tree cleanup after itself
Parents
rABC1cab8a4eb82a: [Radix] Use RCUPtr to keep track of items in the tree
Branches
Unknown
Tags
Unknown