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 Jul 24 2020, 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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jul 24 2020, 12:43

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