Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a memory leak in key.cpp #1495

Merged
merged 1 commit into from
Jun 22, 2012
Merged

fix a memory leak in key.cpp #1495

merged 1 commit into from
Jun 22, 2012

Conversation

Diapolo
Copy link

@Diapolo Diapolo commented Jun 21, 2012

  • add EC_KEY_free() in CKey::Reset() when pkey != NULL
  • init pkey with NULL in CKey constructor

Fix for #1474

- add EC_KEY_free() in CKey::Reset() when pkey != NULL
- init pkey with NULL in CKey constructor
@gmaxwell
Copy link
Contributor

ACK.

gmaxwell added a commit that referenced this pull request Jun 22, 2012
@gmaxwell gmaxwell merged commit a386954 into bitcoin:master Jun 22, 2012
coblee pushed a commit to litecoin-project/litecoin that referenced this pull request Jul 17, 2012
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request May 6, 2020
…ass.

a1819b5 [Wallet] Clean pwalletMain wrong usage inside wallet.cpp  . (furszy)
ef3ca99 [Wallet] Clean more pwalletMain wrong usage in wallet_zerocoin. (furszy)
0dc1120 [Move-only] Move GetDeterministicSeed & AddDeterministicSeed to legacy wallet_zerocoin. (furszy)
1ed1b5f [Wallet] Cleanup wrong pwalletMain usage in wallet_zerocoin.cpp (furszy)

Pull request description:

  Essentially `wallet.cpp`, `crypter.cpp` and `wallet_zerocoin.cpp` were wrongly using/calling `pwalletMain` when those files are actually THE WALLET.

  This was blocking the `CWallet` object usage in unit test as the wallet (or any other wallet created that it's not `pwalletMain`) would be calling a pointer that could or couldn't exist when it should just call an internal method.

ACKs for top commit:
  random-zebra:
    Big ACK a1819b5 here.
  Fuzzbawls:
    ACK a1819b5

Tree-SHA512: b978f842aa08f72905dd2210ad84cdea2399baf01bdf0b7d14015b9f005829c4a50c204ad57ba3c91cc261dc0ac1e8cb70205256b423feedfdad9d4022a80336
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants