HomePhabricator

Fix memory leak in work_comparator_tests.cpp

Description

Fix memory leak in work_comparator_tests.cpp

Summary: The CBlockIndex are never freed.

Test Plan:
Build with asan, then:

./src/test/test_bitcoin -t work_comparator_tests

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

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

Details

Provenance
FabienAuthored on Jul 5 2019, 18:02
FabienPushed on Jul 5 2019, 19:43
Reviewer
Restricted Project
Differential Revision
D3568: Fix memory leak in work_comparator_tests.cpp
Parents
rABC74c90dd74fcf: Merge #10313: [Consensus] Add constant for maximum stack size
Branches
Unknown
Tags
Unknown