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
Branch
fix_work_comparator_tests_memleak
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6689
Build 11425: Bitcoin ABC Buildbot (legacy)
Build 11424: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jul 5 2019, 18:59
This revision was automatically updated to reflect the committed changes.