Page MenuHomePhabricator

[Radix] Have the radix tree cleanup after itself
ClosedPublic

Authored by deadalnix on Jan 22 2019, 19:09.

Details

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.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jasonbcox added a subscriber: jasonbcox.

Looks like same build failure as before. Not sure why this change would re-introduce it though.

This revision is now accepted and ready to land.Jan 24 2019, 00:38

nvm I see this diff actually has a dependency on D2336

This revision was automatically updated to reflect the committed changes.