Page MenuHomePhabricator

Fix memory leak in work_comparator_tests.cpp
ClosedPublic

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

Details

Reviewers
deadalnix
jasonbcox
Group Reviewers
Restricted Project
Commits
rABC45e5a3edaabf: 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

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.