HomePhabricator

Fix a use after free error

Description

Fix a use after free error

Summary: D18073 mistakenly introduced a use after free bug by avoiding a copy that was made on purpose and holding a reference to an iterator pointed item that is removed in the next line, causing the reference to be dangling.

Test Plan:

./contrib/teamcity/build-configurations.py build-asan

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
FabienAuthored on Mon, May 12, 19:51
FabienPushed on Mon, May 12, 20:26
Reviewer
Restricted Project
Differential Revision
D18082: Fix a use after free error
Parents
rABCc76a8db83fc4: clang-tidy: Add more performance checks
Branches
Unknown
Tags
Unknown