Page MenuHomePhabricator

[backport#14138] wallet: Set encrypted_batch to nullptr after delete. Avoid double free in the case of NDEBUG.
ClosedPublic

Authored by majcosta on Fri, Jul 24, 03:22.

Details

Summary

fa462b365715928d2c6eb52ca6a448f367084f0f wallet: Set encrypted_batch to nullptr after delete. Avoid double free in the case of NDEBUG. (practicalswift)

Pull request description:

Set `encrypted_batch` to `nullptr` after delete. Avoid double free in the case of `NDEBUG`.

https://github.com/bitcoin/bitcoin/pull/14138/commits/fa462b365715928d2c6eb52ca6a448f367084f0f


Backport of Core PR14138

Test Plan
ninja check check-functional

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.

Event Timeline

majcosta created this revision.Fri, Jul 24, 03:22
Herald added a reviewer: Restricted Project. · View Herald TranscriptFri, Jul 24, 03:22
majcosta requested review of this revision.Fri, Jul 24, 03:22
Fabien accepted this revision.Fri, Jul 24, 12:43
This revision is now accepted and ready to land.Fri, Jul 24, 12:43
teamcity edited the summary of this revision. (Show Details)Mon, Jul 27, 22:02

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.