[wallet] Fix wallet memory leaks in cases of unsuccessful CreateWalletFromFile calls #10895

pull practicalswift wants to merge 1 commits into bitcoin:master from practicalswift:wallet-memory-leaks changing 1 files +10 −0
  1. practicalswift commented at 4:33 PM on July 21, 2017: contributor

    Fix wallet memory leaks in cases of unsuccessful CreateWalletFromFile calls.

  2. [wallet] Fix wallet memory leaks e2d84e5cbb
  3. bpay commented at 6:24 PM on July 21, 2017: contributor

    This sort of thing should be handled by unique_ptr or some other form of RAII.

  4. jonasschnelli commented at 6:27 PM on July 21, 2017: contributor

    Agree with @bpay: Should use a unique_ptr for CWallet *tempWallet = new CWallet(std::move(dbw)); (same way like the line above: std::unique_ptr<CWalletDBWrapper> dbw(new CWalletDBWrapper(&bitdb, walletFile));)

  5. jonasschnelli added the label Refactoring on Jul 21, 2017
  6. practicalswift closed this on Jul 21, 2017

  7. practicalswift deleted the branch on Apr 10, 2021
  8. DrahtBot locked this on Aug 16, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-16 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me