Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wallet: Fix possible memory leak in CreateWalletFromFile.
If there was an error loading the wallet after creating the instance, the instance would leak. This uses RAII to ensure the instance is cleaned up in that case.
- Loading branch information
Jim Posen
committed
Apr 18, 2018
1 parent
615f7c2
commit 5799e57
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters