Page MenuHomePhabricator

Fix memory leak in work_comparator_tests.cpp
ClosedPublic

Authored by Fabien on Jul 5 2019, 18:48.

Details

Summary

The CBlockIndex are never freed.

Test Plan

Build with asan, then:

./src/test/test_bitcoin -t work_comparator_tests

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.