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
Lint Not Applicable
Unit
Tests Not Applicable

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.